Operations

interface Operations

Functions

atan
Link copied to clipboard
abstract fun atan(x: DTensor): DTensor
avgPool
Link copied to clipboard
abstract fun avgPool(x: DTensor, poolHeight: Int, poolWidth: Int): DTensor
avgPoolGrad
Link copied to clipboard
abstract fun avgPoolGrad(x: DTensor, poolHeight: Int, poolWidth: Int): DTensor
batchNorm
Link copied to clipboard
open fun batchNorm(input: DTensor, scaleShift: DTensor, derivativeId: DerivativeID): BatchNormResult
broadcastTo
Link copied to clipboard
abstract fun broadcastTo(x: DTensor, newShape: Shape): DTensor
compare
Link copied to clipboard
abstract fun compare(left: DTensor, right: DTensor, comparison: ComparisonKind): DTensor
concat
Link copied to clipboard
abstract fun concat(slices: List<DTensor>, axis: Int, derivativeId: DerivativeID): DTensor
abstract fun concat(left: DTensor, right: DTensor, axis: Int, derivativeId: DerivativeID): DTensor
convImpl
Link copied to clipboard
abstract fun convImpl(signal: DTensor, filter: DTensor, hStride: Int, vStride: Int, padding: Convolve.Padding2D, derivativeId: DerivativeID): DTensor

Applies convolution to the tensor signal, using filter. Both signal and filter must be of rank 4. The expected shape of signal is NHWC (num signal, height, width, channels) and the expected filter shape is OHWI (output channels, height, width, input channels) where C == I

cos
Link copied to clipboard
abstract fun cos(x: DTensor): DTensor
digamma
Link copied to clipboard
abstract fun digamma(x: DTensor): DTensor
div
Link copied to clipboard
open fun div(left: DTensor, right: DTensor, derivativeId: DerivativeID): DTensor
exp
Link copied to clipboard
abstract fun exp(x: DTensor): DTensor
expand
Link copied to clipboard
abstract fun expand(x: DTensor, newShape: Shape): DTensor
flip
Link copied to clipboard
abstract fun flip(x: DTensor, axes: IntArray): DTensor
gamma
Link copied to clipboard
abstract fun gamma(alpha: DTensor, randomKey: RandomKey): DTensor
gather
Link copied to clipboard
abstract fun gather(x: DTensor, indices: List<Int>, axis: Int, paddingIndex: Int): DTensor
gatherAtIndices
Link copied to clipboard
abstract fun gatherAtIndices(x: DTensor, indices: List<IntArray>): DTensor
identityGradientOfSameKind
Link copied to clipboard
abstract fun identityGradientOfSameKind(x: DTensor, halfShape: Shape): DTensor
ifThenElse
Link copied to clipboard
abstract fun ifThenElse(condition: DTensor, whenTrue: DTensor, whenFalse: DTensor, derivativeId: DerivativeID): DTensor
lgamma
Link copied to clipboard
abstract fun lgamma(x: DTensor): DTensor
ln
Link copied to clipboard
abstract fun ln(x: DTensor): DTensor
logSoftmax
Link copied to clipboard
open fun logSoftmax(x: DTensor, axis: Int): DTensor
logSoftmaxGrad
Link copied to clipboard
abstract fun logSoftmaxGrad(x: DTensor, axis: Int, logSoftmax: DTensor, upstream: DTensor): DTensor
matmul
Link copied to clipboard
abstract fun matmul(x: DTensor, y: DTensor, a: Shape, b: Shape, c: Shape, d: Shape, derivativeId: DerivativeID): DTensor
maxPoolWithIndices
Link copied to clipboard
abstract fun maxPoolWithIndices(x: DTensor, poolHeight: Int, poolWidth: Int, withIndices: Boolean): Pair<DTensor, List<IntArray>?>
meld
Link copied to clipboard
abstract fun meld(values: List<DTensor>, derivativeId: DerivativeID): DTensor
minus
Link copied to clipboard
abstract fun minus(left: DTensor, right: DTensor, derivativeId: DerivativeID): DTensor
outerProduct
Link copied to clipboard
abstract fun outerProduct(x: DTensor, y: DTensor, derivativeId: DerivativeID): DTensor
plus
Link copied to clipboard
abstract fun plus(left: DTensor, right: DTensor, derivativeId: DerivativeID): DTensor
polygamma
Link copied to clipboard
abstract fun polygamma(n: Int, x: DTensor): DTensor
pow
Link copied to clipboard
abstract fun pow(base: DTensor, exponent: Float): DTensor
relu
Link copied to clipboard
abstract fun relu(x: DTensor): DTensor
reluGrad
Link copied to clipboard
abstract fun reluGrad(x: DTensor, reluUpstream: DTensor, derivativeId: DerivativeID): DTensor
reshape
Link copied to clipboard
abstract fun reshape(x: DTensor, newShape: Shape): DTensor
reshapeToScalar
Link copied to clipboard
abstract fun reshapeToScalar(x: DTensor): DScalar
scatter
Link copied to clipboard
abstract fun scatter(x: DTensor, indices: List<Int>, axis: Int, newShape: Shape, paddingIndex: Int): DTensor
scatterAtIndices
Link copied to clipboard
abstract fun scatterAtIndices(x: DTensor, indices: List<IntArray>, newShape: Shape): DTensor
sigmoid
Link copied to clipboard
abstract fun sigmoid(x: DTensor): DTensor
sin
Link copied to clipboard
abstract fun sin(x: DTensor): DTensor
split
Link copied to clipboard
abstract fun split(x: DTensor, shapes: List<Shape>): List<DTensor>
sqrt
Link copied to clipboard
abstract fun sqrt(x: DTensor): DTensor
squeeze
Link copied to clipboard
abstract fun squeeze(x: DTensor, axis: Int): DTensor
sum
Link copied to clipboard
abstract fun sum(x: DTensor, axes: IntArray, keepDims: Boolean): DTensor
tan
Link copied to clipboard
abstract fun tan(x: DTensor): DTensor
tanh
Link copied to clipboard
abstract fun tanh(x: DTensor): DTensor
times
Link copied to clipboard
abstract fun times(left: DTensor, right: DTensor, derivativeId: DerivativeID): DTensor
timesScalar
Link copied to clipboard
abstract fun timesScalar(left: DScalar, right: DTensor, derivativeId: DerivativeID): DTensor
transpose
Link copied to clipboard
abstract fun transpose(x: DTensor, axes: IntArray): DTensor
unaryMinus
Link copied to clipboard
abstract fun unaryMinus(x: DTensor): DTensor
unsqueeze
Link copied to clipboard
abstract fun unsqueeze(x: DTensor, axis: Int): DTensor
view1
Link copied to clipboard
abstract fun view1(x: DTensor, indices: IntArray): DTensor
view2
Link copied to clipboard
abstract fun view2(x: DTensor, index: Int, axis: Int): DTensor
view3
Link copied to clipboard
abstract fun view3(x: DTensor, index: IntRange, axis: Int): DTensor
zeroOfSameKind
Link copied to clipboard
abstract fun zeroOfSameKind(x: DTensor, shape: Shape): DTensor

Properties

name
Link copied to clipboard
abstract val name: String
tensor
Link copied to clipboard
open val tensor: Operations

For a scalar operations, returns the corresponding tensor operations.

Inheritors

TracingTensorOperations
Link copied to clipboard