Unary
Unary operations for the Nabla framework.
-
nabla.ops.unary.negate(arg)[source]
Element-wise negation.
-
nabla.ops.unary.cast(arg, dtype)[source]
Cast array to different dtype.
-
nabla.ops.unary.sin(arg, dtype=None)[source]
Element-wise sine.
-
nabla.ops.unary.cos(arg)[source]
Element-wise cosine.
-
nabla.ops.unary.tanh(arg)[source]
Element-wise hyperbolic tangent.
-
nabla.ops.unary.sigmoid(arg)[source]
Element-wise sigmoid function.
-
nabla.ops.unary.abs(arg)[source]
Element-wise absolute value.
-
nabla.ops.unary.floor(arg)[source]
Element-wise floor function.
-
nabla.ops.unary.logical_not(arg)[source]
Element-wise logical NOT operation.
-
nabla.ops.unary.incr_batch_dim_ctr(arg)[source]
Increment batch dimension counter for debugging.
-
nabla.ops.unary.decr_batch_dim_ctr(arg)[source]
Decrement batch dimension counter for debugging.
-
nabla.ops.unary.relu(arg)[source]
Element-wise ReLU (Rectified Linear Unit) function.
-
nabla.ops.unary.log(arg)[source]
Element-wise natural logarithm.
-
nabla.ops.unary.exp(arg)[source]
Element-wise exponential function.
-
nabla.ops.unary.sqrt(arg)[source]
Element-wise square root function.
Implemented as pow(arg, 0.5) for compatibility with the automatic
differentiation system.
-
nabla.ops.unary.transfer_to(arg, device)[source]
Transfer an array to a different device.