default

scalation.modeling.autograd.AutogradOps.default
object default extends AutogradOps

Default instance of AutogradOps.

Attributes

Graph
Supertypes
trait AutogradOps
class Object
trait Matchable
class Any
Self type
default.type

Members list

Value members

Concrete methods

def abs(x: TensorD): TensorD

Returns the absolute value of each element in tensor x.

Returns the absolute value of each element in tensor x.

Attributes

def add(x: TensorD, y: TensorD): TensorD

Returns element-wise addition of tensors x and y.

Returns element-wise addition of tensors x and y.

Attributes

def addScalar(x: TensorD, s: Double): TensorD

Adds scalar s to each element in tensor x.

Adds scalar s to each element in tensor x.

Attributes

def binaryCrossEntropy(pred: TensorD, target: TensorD): Double

Computes the binary cross entropy loss between the prediction and target tensors.

Computes the binary cross entropy loss between the prediction and target tensors.

Attributes

def bmm(x: TensorD, y: TensorD): TensorD

Performs batched matrix multiplication of tensors x and y.

Performs batched matrix multiplication of tensors x and y.

Attributes

def categoricalCrossEntropy(pred: TensorD, target: TensorD): Double

Computes the categorical cross entropy loss between the prediction and target tensors.

Computes the categorical cross entropy loss between the prediction and target tensors.

Attributes

def ceil(x: TensorD): TensorD

Applies ceiling to each element in tensor x.

Applies ceiling to each element in tensor x.

Attributes

def clipByNorm(x: TensorD, maxNorm: Double): TensorD

Clips the elements of tensor x to have a maximum norm of maxNorm.

Clips the elements of tensor x to have a maximum norm of maxNorm.

Attributes

def clipByValue(x: TensorD, min: Double, max: Double): TensorD

Clips the elements of tensor x to be within the range [min, max].

Clips the elements of tensor x to be within the range [min, max].

Attributes

def concat(tensors: Seq[TensorD], axis: Int): TensorD
def div(x: TensorD, y: TensorD): TensorD

Returns element-wise division of tensor x by tensor y.

Returns element-wise division of tensor x by tensor y.

Attributes

def divScalar(x: TensorD, s: Double): TensorD

Divides each element in tensor x by scalar s.

Divides each element in tensor x by scalar s.

Attributes

def dot(x: TensorD, y: TensorD): TensorD

Computes the dot product of tensors x and y.

Computes the dot product of tensors x and y.

Attributes

def eLUD_(yp: TensorD, alpha: Double = ...): TensorD

Derivative of the ELU activation function with an optional alpha parameter.

Derivative of the ELU activation function with an optional alpha parameter.

Attributes

def eLU_(yp: TensorD, alpha: Double = ...): TensorD

Exponential Linear Unit (ELU) activation function with an optional alpha parameter.

Exponential Linear Unit (ELU) activation function with an optional alpha parameter.

Attributes

def exp(x: TensorD): TensorD

Computes the exponential of each element in tensor x.

Computes the exponential of each element in tensor x.

Attributes

def floor(x: TensorD): TensorD

Applies floor to each element in tensor x.

Applies floor to each element in tensor x.

Attributes

def fullLike(t: TensorD, value: Double): TensorD

Creates a tensor with the same shape as t filled with the specified value.

Creates a tensor with the same shape as t filled with the specified value.

Attributes

Gaussian activation function.

Gaussian activation function.

Attributes

def geLUD_(yp: TensorD): TensorD

Derivative of the GeLU activation function.

Derivative of the GeLU activation function.

Attributes

def geLU_(yp: TensorD): TensorD

Gaussian Error Linear Unit (GeLU) activation function.

Gaussian Error Linear Unit (GeLU) activation function.

Attributes

def getSlice(x: TensorD, r0: Range, r1: Range, r2: Range): TensorD
def idD_(yp: TensorD): TensorD

Derivative of the identity activation function.

Derivative of the identity activation function.

Attributes

def id_(yp: TensorD): TensorD

Identity activation function.

Identity activation function.

Attributes

def log(x: TensorD): TensorD

Returns the natural logarithm of each element in tensor x.

Returns the natural logarithm of each element in tensor x.

Attributes

def logBase(x: TensorD, base: Double): TensorD

Returns the logarithm of tensor x with the specified base.

Returns the logarithm of tensor x with the specified base.

Attributes

def logistic_(yp: TensorD, a: Double = ..., b: Double = ..., c: Double = ...): TensorD

Logistic activation function with parameters a, b, and c.

Logistic activation function with parameters a, b, and c.

Attributes

def logit_(yp: TensorD): TensorD

Logit activation function.

Logit activation function.

Attributes

def lreLUD_(yp: TensorD): TensorD

Derivative of the Leaky ReLU activation function.

Derivative of the Leaky ReLU activation function.

Attributes

def lreLU_(yp: TensorD, alpha: Double = ...): TensorD

Leaky ReLU activation function with an optional alpha parameter.

Leaky ReLU activation function with an optional alpha parameter.

Attributes

def maeLoss(pred: TensorD, target: TensorD): Double

Computes the Mean Absolute Error (MAE) loss between the prediction and target tensors.

Computes the Mean Absolute Error (MAE) loss between the prediction and target tensors.

Attributes

def matmul(x: TensorD, y: TensorD): TensorD

Performs matrix multiplication of tensors x and y.

Performs matrix multiplication of tensors x and y.

Attributes

def max(x: TensorD, y: TensorD): TensorD

Returns the element-wise maximum of tensors x and y.

Returns the element-wise maximum of tensors x and y.

Attributes

def maxScalar(x: TensorD, s: Double): TensorD

Returns the element-wise maximum between tensor x and scalar s.

Returns the element-wise maximum between tensor x and scalar s.

Attributes

def maxValue(x: TensorD): Double

Returns the maximum value in tensor x.

Returns the maximum value in tensor x.

Attributes

def mean(x: TensorD): Double

Computes the mean of all elements in tensor x.

Computes the mean of all elements in tensor x.

Attributes

def meanAlongAxis(x: TensorD, axis: Int): TensorD

Computes the mean along the specified axis of tensor x.

Computes the mean along the specified axis of tensor x.

Attributes

def min(x: TensorD, y: TensorD): TensorD

Returns the element-wise minimum of tensors x and y.

Returns the element-wise minimum of tensors x and y.

Attributes

def minScalar(x: TensorD, s: Double): TensorD

Returns the element-wise minimum between tensor x and scalar s.

Returns the element-wise minimum between tensor x and scalar s.

Attributes

def minValue(x: TensorD): Double

Returns the minimum value in tensor x.

Returns the minimum value in tensor x.

Attributes

def mseLoss(pred: TensorD, target: TensorD): Double

Computes the Mean Squared Error (MSE) loss between the prediction and target tensors.

Computes the Mean Squared Error (MSE) loss between the prediction and target tensors.

Attributes

def mul(x: TensorD, y: TensorD): TensorD

Returns element-wise multiplication of tensors x and y.

Returns element-wise multiplication of tensors x and y.

Attributes

def mulScalar(x: TensorD, s: Double): TensorD

Multiplies each element in tensor x by scalar s.

Multiplies each element in tensor x by scalar s.

Attributes

def neg(x: TensorD): TensorD

Returns the negation of tensor x.

Returns the negation of tensor x.

Attributes

def normF(x: TensorD): Double

Computes the Frobenius norm of tensor x.

Computes the Frobenius norm of tensor x.

Attributes

def normFSq(x: TensorD): Double

Computes the Frobenius norm squared of tensor x.

Computes the Frobenius norm squared of tensor x.

Attributes

Creates a tensor with the same shape as x filled with ones.

Creates a tensor with the same shape as x filled with ones.

Attributes

def permute(x: TensorD, axes: Seq[Int]): TensorD

Permutes the axes of tensor x according to the specified order.

Permutes the axes of tensor x according to the specified order.

Attributes

def pow(x: TensorD, s: Int): TensorD

Raises each element in tensor x to the power of s.

Raises each element in tensor x to the power of s.

Attributes

def reLUD_(yp: TensorD): TensorD

Derivative of the ReLU activation function.

Derivative of the ReLU activation function.

Attributes

def reLU_(yp: TensorD): TensorD

Rectified Linear Unit (ReLU) activation function.

Rectified Linear Unit (ReLU) activation function.

Attributes

Returns the reciprocal of each element in tensor x.

Returns the reciprocal of each element in tensor x.

Attributes

def reshape(x: TensorD, newShape: Seq[Int]): TensorD
def round(x: TensorD): TensorD

Rounds each element in tensor x to the nearest integer.

Rounds each element in tensor x to the nearest integer.

Attributes

def scalar(s: Double): TensorD

Creates a tensor consisting of scalar value s.

Creates a tensor consisting of scalar value s.

Attributes

def setSlice(x: TensorD, value: TensorD, r0: Range, r1: Range, r2: Range): TensorD
def shape(x: TensorD): List[Int]

Returns the shape of tensor x as a list of dimension sizes.

Returns the shape of tensor x as a list of dimension sizes.

Attributes

Derivative of the sigmoid activation function.

Derivative of the sigmoid activation function.

Attributes

Sigmoid activation function.

Sigmoid activation function.

Attributes

def sign(x: TensorD): TensorD

Returns the sign of each element in tensor x.

Returns the sign of each element in tensor x.

Attributes

Derivative of the softmax activation function.

Derivative of the softmax activation function.

Attributes

Softmax activation function.

Softmax activation function.

Attributes

def sqrt(x: TensorD): TensorD

Returns the square root of each element in tensor x.

Returns the square root of each element in tensor x.

Attributes

def sseLoss(pred: TensorD, target: TensorD): Double

Computes the Sum of Squared Errors (SSE) loss between the prediction and target tensors.

Computes the Sum of Squared Errors (SSE) loss between the prediction and target tensors.

Attributes

def standardize(x: TensorD, axis: Int): TensorD

Standardizes tensor x along the specified axis.

Standardizes tensor x along the specified axis.

Attributes

def std(x: TensorD): Double

Computes the standard deviation of tensor x.

Computes the standard deviation of tensor x.

Attributes

def stdAlongAxis(x: TensorD, axis: Int): TensorD

Computes the standard deviation along the specified axis of tensor x.

Computes the standard deviation along the specified axis of tensor x.

Attributes

def sub(x: TensorD, y: TensorD): TensorD

Returns element-wise subtraction of tensor y from tensor x.

Returns element-wise subtraction of tensor y from tensor x.

Attributes

def subScalar(x: TensorD, s: Double): TensorD

Subtracts scalar s from each element in tensor x.

Subtracts scalar s from each element in tensor x.

Attributes

def sum(x: TensorD): Double

Computes the sum of all elements in tensor x.

Computes the sum of all elements in tensor x.

Attributes

def sumAlongAxis(x: TensorD, axis: Int): TensorD

Computes the sum along the specified axis of tensor x.

Computes the sum along the specified axis of tensor x.

Attributes

def tanhD_(yp: TensorD): TensorD

Derivative of the tanh activation function.

Derivative of the tanh activation function.

Attributes

def tanh_(yp: TensorD): TensorD

Hyperbolic tangent (tanh) activation function.

Hyperbolic tangent (tanh) activation function.

Attributes

def transpose(x: TensorD, i: Int, j: Int): TensorD

Transposes tensor x by swapping the specified axes i and j.

Transposes tensor x by swapping the specified axes i and j.

Attributes

def variance(x: TensorD): Double

Computes the variance of all elements in tensor x.

Computes the variance of all elements in tensor x.

Attributes

def varianceAlongAxis(x: TensorD, axis: Int): TensorD

Computes the variance along the specified axis of tensor x.

Computes the variance along the specified axis of tensor x.

Attributes

Creates a tensor with the same shape as x filled with zeros.

Creates a tensor with the same shape as x filled with zeros.

Attributes