Skip to content

Allow users to specify placement names and sizes directly with kwargs of drjax.program.#16

Merged
copybara-service[bot] merged 1 commit intomainfrom
cl/750713353
Apr 24, 2025
Merged

Allow users to specify placement names and sizes directly with kwargs of drjax.program.#16
copybara-service[bot] merged 1 commit intomainfrom
cl/750713353

Conversation

@copybara-service
Copy link

Allow users to specify placement names and sizes directly with kwargs of drjax.program.

Previously users could only write drjax.program({'foo': 5}) (optionally naming the argument placements).

Now users can directly write the placement with:
drjax.program(foo=5).

Note that the placement name placements is reserved, i.e. drjax.proram(placesment=5) is not allowed.

… of `drjax.program`.

Previously users could only write `drjax.program({'foo': 5})` (optionally naming the argument `placements`).

Now users can directly write the placement with:
`drjax.program(foo=5)`.

Note that the placement name `placements` is reserved, i.e. `drjax.proram(placesment=5)` is not allowed.

PiperOrigin-RevId: 750988233
@copybara-service copybara-service bot merged commit 051c7e4 into main Apr 24, 2025
@copybara-service copybara-service bot deleted the cl/750713353 branch April 24, 2025 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant