golem.tensor

Undocumented in source.

Members

Aliases

UseGradient
alias UseGradient = Flag!"gradient"
Undocumented in source.

Classes

Tensor
class Tensor(T, size_t[] Shape, UseGradient hasGradient = UseGradient.yes)
Undocumented in source.

Enums

canBackward
eponymoustemplate canBackward(T)
Undocumented in source.
isTensor
eponymoustemplate isTensor(T, U, size_t[] Shape, UseGradient hasGradient)
Undocumented in source.
isTensor
eponymoustemplate isTensor(T)
Undocumented in source.
isTensor
eponymoustemplate isTensor(T, UseGradient hasGradient)
Undocumented in source.
isTensor
eponymoustemplate isTensor(T, U, size_t[] Shape)
Undocumented in source.

Functions

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)

Templates

commonGradientType
template commonGradientType(T1, T2)
Undocumented in source.
tensor
template tensor(size_t[] Shape, UseGradient useGradient = Yes.gradient)
Undocumented in source.

Meta