Operation

A node in the expression graph

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.
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
Buffer 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.

Meta