TracingTensorOperations

object TracingTensorOperations : Operations

Functions

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

Properties

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

For a scalar operations, returns the corresponding tensor operations.