|
NEML2 2.0.0
|
Functions | |
| static Derived | empty_like (const Derived &other) |
| static Derived | zeros_like (const Derived &other) |
| Zero tensor like another, i.e. same batch and base shapes, same tensor options, etc. | |
| static Derived | ones_like (const Derived &other) |
| Unit tensor like another, i.e. same batch and base shapes, same tensor options, etc. | |
| static Derived | full_like (const Derived &other, const CScalar &init) |
| static Derived | rand_like (const Derived &other) |
|
staticnodiscard |
Empty tensor like another, i.e. same batch and base shapes, same tensor options, etc.
|
staticnodiscard |
Full tensor like another, i.e. same batch and base shapes, same tensor options, etc., but filled with a different value
|
staticnodiscard |
Unit tensor like another, i.e. same batch and base shapes, same tensor options, etc.
|
staticnodiscard |
Random tensor like another, i.e. same batch and base shapes, same tensor options, etc. The random values follow a uniform distribution [0, 1)
|
staticnodiscard |
Zero tensor like another, i.e. same batch and base shapes, same tensor options, etc.