Skip to content

Document jax.lax APIs #26219

@jakevdp

Description

@jakevdp

Most docstrings for jax.lax APIs are just short stubs at the moment. We should add documentation including:

  • one-line short description
  • what primitive & HLO operation they lower to
  • Args: section mentioning shape/dtype requirements (if any)
  • Returns: section mentioning output shape/dtype
  • Notes: section with unexpected conventions or dtype-dependent behavior
  • Examples: section, but only when they would add clarity (e.g. we don't need an example showing that lax.sin computes the sine)

#26220 is an example of updating a few docstrings.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions