Tensor

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

Constructors

this
this(T init)
Undocumented in source.
this
this(RoR data)
Undocumented in source.
this
this(T[] data)
Undocumented in source.
this
this(Value value)
Undocumented in source.
this
this(Value value, void delegate(Value grad) gradFn)
Undocumented in source.
this
this(Value value)
Undocumented in source.

Members

Aliases

ElementType
alias ElementType = T
Undocumented in source.
Value
alias Value = Slice!(T*, Shape.length)
Undocumented in source.
shape
alias shape = staticShape
Undocumented in source.
shape
alias shape = runtimeShape
Undocumented in source.

Functions

backward
void backward(void delegate(ref Value grads) update)
Undocumented in source. Be warned that the author may not have intended to support it.
backward
void backward(U grads)
Undocumented in source. Be warned that the author may not have intended to support it.
backward
void backward()
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Tensor!(T, Shape, commonGradientType!(typeof(this), RTensor)) opBinary(RTensor rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Tensor!(T, Shape, hasGradient) opBinary(T rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Tensor!(T, Shape, commonGradientType!(typeof(this), RTensor)) opBinary(RTensor rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Tensor!(T, Shape, hasGradient) opBinary(T rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Tensor!(T, Shape, commonGradientType!(typeof(this), RTensor)) opBinary(RTensor rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Tensor!(T, Shape, hasGradient) opBinary(T rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Tensor!(T, Shape, commonGradientType!(typeof(this), RTensor)) opBinary(RTensor rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinaryRight
Tensor!(T, Shape, hasGradient) opBinaryRight(T lhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinaryRight
Tensor!(T, Shape, hasGradient) opBinaryRight(T rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinaryRight
Tensor!(T, Shape, hasGradient) opBinaryRight(T lhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opUnary
Tensor!(T, Shape, hasGradient) opUnary()
Undocumented in source. Be warned that the author may not have intended to support it.
resetGrads
void resetGrads()
Undocumented in source. Be warned that the author may not have intended to support it.
runtimeShape
size_t[Shape.length] runtimeShape()
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

staticShape
enum staticShape;
Undocumented in source.

Variables

backwardCount
size_t backwardCount;
Undocumented in source.
backwardFn
void delegate(Value grads) backwardFn;
Undocumented in source.
grads
Value grads;
Undocumented in source.
requireGrad
bool requireGrad;
Undocumented in source.
usedCount
size_t usedCount;
Undocumented in source.
value
Value value;
Undocumented in source.

Meta