An optax-style optimizer with a function to partition the inputs across devices. For new optimizers, using `UpdateTransformation` is preferred instead because it supports more types of optimizers and allows better reuse of functionality across different optimizers. Despite this, there
| 69 | |
| 70 | |
| 71 | class PartitionedGradientTransformation(NamedTuple): |
| 72 | """An optax-style optimizer with a function to partition the inputs across devices. |
| 73 | |
| 74 | For new optimizers, using `UpdateTransformation` is preferred instead because it supports |
| 75 | more types of optimizers and allows better reuse of functionality across different optimizers. |
| 76 | |
| 77 | Despite this, there are no plans to stop supporting this class. |
| 78 | """ |
| 79 | |
| 80 | init: TransformInitFn |
| 81 | update: TransformUpdateFn |
| 82 | partition: TransformPartitionSpecFn |
no outgoing calls