- ones
Tensor!(T, Shape, useGrad) ones()
Tensor!(T, Shape, useGrad) ones(size_t batchSize)
- onesLike
Tensor!(T, Shape, UseGradient.no) onesLike(Tensor!(T, Shape, useGradient) x)
Tensor!(T, Shape, useGrad) onesLike(Tensor!(T, Shape, useGradient) x)
- reshape
Tensor!(T, TargetShape, useGrad) reshape(Tensor!(T, Shape, useGrad) x)
- testCompatibleStaticShape
bool testCompatibleStaticShape(size_t[] lhsShape, size_t[] rhsShape)
Undocumented in source. Be warned that the author may not have intended to support it.
- zeros
Tensor!(T, Shape, useGrad) zeros()
- zeros
Tensor!(T, Shape, useGrad) zeros(size_t batchSize)
- zerosLike
Tensor!(T, Shape, UseGradient.no) zerosLike(Tensor!(T, Shape, useGradient) x)
Tensor!(T, Shape, useGrad) zerosLike(Tensor!(T, Shape, useGradient) x)