Operation

A node in the expression graph

Constructors

this
this(string opType, Operation[] deps, Variant[string] attribs, string mod, size_t line)
Undocumented in source.

Members

Functions

elementType
auto elementType()
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Operation opBinary(Operation rhs, string mod, size_t line)

Convenience method for pointwise operations.

opBinary
Operation opBinary(int i, string mod, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Operation opBinary(float i, string mod, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinaryRight
Operation opBinaryRight(T t, string mod, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
opUnary
Operation opUnary()
Undocumented in source. Be warned that the author may not have intended to support it.
rank
auto rank()
Undocumented in source. Be warned that the author may not have intended to support it.
setBuffer
void setBuffer(DeviceBuffer buf)
Undocumented in source. Be warned that the author may not have intended to support it.
shape
auto shape()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
value
DeviceBuffer value()
Undocumented in source. Be warned that the author may not have intended to support it.
volume
auto volume()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

attributes
Variant[string] attributes [@property getter]

Returns an associative array that maps strings to operation specific attributes.

deps
Operation[] deps [@property getter]

Returns a list of operands for this operation.

opType
string opType [@property getter]

Returns a string identifying the type of this operation. This is the same string used when registering the operation with the registerOperation method.

outputType
TensorType outputType [@property getter]

Returns a TensorType object that specifies the type of tensor obtained by evaluating this operation.

Variables

mAttributes
Variant[string] mAttributes;
Undocumented in source.
mBuffer
DeviceBuffer mBuffer;
Undocumented in source.
mDeps
Operation[] mDeps;
Undocumented in source.
mLine
size_t mLine;
Undocumented in source.
mModule
string mModule;
Undocumented in source.
mOpType
string mOpType;
Undocumented in source.
mOutputType
TensorType mOutputType;
Undocumented in source.

Meta