8000 [Feature] arctan2 · Issue #1065 · ml-explore/mlx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Feature] arctan2 #1065
Closed
Closed
@yrahul3910

Description

@yrahul3910

I want to eventually contribute to this Keras issue, and since this would be my first contribution, I want to start small and implement arctan2. If nobody is currently working on this, I would like to contribute this feature. Specifically, my implementation plan, based on looking at arctan, is as follows:

  • Add an ArcTan2 class to mlx/primitives.h, and its corresponding vjp, jvp, and vmap functions in mlx/primitives.cpp
  • Add an ArcTan2 struct to mlx/backend/common/ops.h, and overload the function call operator.
  • Add an ArcTan2 struct to mlx/backend/metal/unary.h, and add instantitate_unary_float calls in mlx/backend/metal/unary.metal. The necessary metal::precise::atan2 function seems to already be implemented.
  • Add tests, and update docs.

Please let me know if I can proceed.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0