Class SliceViewNodeOp¶
Defined in File node_operators_unary.h
Inheritance Relationships¶
Base Type¶
public marian::UnaryNodeOp
(Struct UnaryNodeOp)
Class Documentation¶
-
class
SliceViewNodeOp
: public marian::UnaryNodeOp¶ Public Functions
-
void
allocate
()¶
-
void
free
()¶
-
void
forward
()¶
-
void
backward
()¶
-
void
init_dependent
()¶ Initialization for backward step of top node in computation graph.
Allocates memory and sets gradient to 1 (df/df == 1).
-
void
set_zero_adjoint
()¶ Initialization for backward step of any non-top node in computation graph.
Allocates memory and sets gradient to 0 for further accumulation of gradients from all parents.
-
Tensor &
val
()¶
-
Tensor &
grad
()¶
-
virtual size_t
hash
()¶
-
void