enp.compat#
Compat utils between TF/Torch/Numpy/Jax.
Currently, each numpy API has slightly different behavior. Those functions ensure compatibility so that the code works seamlessly between all APIs.
In the future, those functions could be deleted and replaced by the official numpy API.
Symbols#
Function#
|
|
|
|
Like |
|
Returns the torch dtype for the given numpy dtype. |
|
Returns the numpy dtype for the given torch dtype. |
|
|
|
Like |
|
|
|
Like |
|
|