Assert will assert the first input to be true, if not, throw the message in the second input.
Update 'ref' by assigning 'value' to it.
Given shapes of two tensors, computes the reduction indices for the gradient computation.
Casts a tensor to a new type.
Control flow related operations
Backward of SpatialConvolution
Compute the cross entropy loss and the gradients.
Control flow related operations, and they just pass the input without modifying them
A wrapper of node for merge operation.
Wrap a nn module to an Operation
OneHot operation returns a one-hot tensor
Operation is an abstract class which represents the most basic operations An operations has only forward functions and without backward functions.
Selects elements from input, depending on given condition.
This operation extracts a slice of size size from a tensor input starting at the location specified by begin.
A wrapper of node for switch operation.
This operation creates a new tensor by replicating input multiples times.
Factory method of control flow related nodes