menu
destack:tensor
import destack:tensor
Structs
AxisSetAxis set used by reductions and broadcasts.ConvolutionAxesAxis mapping for tensor convolution.ConvolutionGroupsGrouping parameters for tensor convolution.ConvolutionWindowWindow parameters for tensor convolution.CoordinateTensor coordinate with Rank indices.DotAxesAxis mapping for tensor dot.FactorizationOptionsOptions for matrix factorizations.GatherAxesAxis mapping for tensor gather.NamedAxisNamed axis metadata used by frontends and debugging tools.NormalizationOptionsOptions for normalization operations.PaddingPadding for a tensor with Rank axes.PermutationAxis permutation with Rank entries.PoolOptionsWindow options for pooling.PoolWindowWindow parameters for pooling.ScatterAxesAxis mapping for tensor scatter.ShapeTensor shape with Rank axes.SliceWindowSlice window for a tensor with Rank axes.SoftmaxOptionsOptions for softmax-like operations.TensorConvertOptionsOutput options for tensor conversion.TensorConvolutionOptionsOutput options for tensor convolution.TensorCreateOptionsAllocation options for a new tensor.TensorExecutionOptionsExecution options for tensor work.TensorOutputOptionsOutput options for tensor operations.TensorReduceOptionsOutput options for tensor reductions.TensorScatterOptionsOutput options for tensor scatter.
Enums
ConvertModeConversion mode for tensor element conversion.FactorizationModeMatrix factorization mode.MemoryOrderMemory order for dense tensor storage.ReductionReduction used when partial tensor shards are combined.ScatterModeUpdate mode for tensor scatter.
Newtypes
AxisAxis index inside a tensor rank.DenseDense contiguous tensor format.ExtentRuntime size along one tensor axis.PartialStore partial results across one mesh axis.ReplicateReplicate one tensor axis across the mesh.ShardSplit one tensor axis across one mesh axis.ShardingTensor storage partitioned or replicated across a compute mesh.StrideTensor element stride.StridedExplicit strided tensor view format.TensorOwning tensor value.TensorViewBorrowed view over tensor storage.UnshardedTensor storage on one device.
Newtype interfaces
PlacementTensor placement descriptor.ShardingAxisPer-axis placement descriptor used by a sharded tensor.TensorFormatFormat implemented by owning tensor storage.TensorViewFormatFormat implemented by borrowed tensor views.
Type aliases
ColumnMajorFormatColumn-major dense tensor format.RowMajorFormatRow-major dense tensor format.
Functions
absoluteReturn elementwise absolute value.allReturn whether all selected boolean values are true.anyReturn whether any selected boolean value is true.argmaxReturn indices of maximum values along axis.argminReturn indices of minimum values along axis.avgPoolReturn average-pooled values.bernoulliReturn values sampled from Bernoulli trials.bitAndReturn bitwise AND along the axes in axisSet.bitOrReturn bitwise OR along the axes in axisSet.bitXorReturn bitwise XOR along the axes in axisSet.broadcastBroadcast tensor to shape.castCast tensor elements to U by bit reinterpretation.choleskyReturn the Cholesky factorization.concatConcatenate tensors along axis.convertConvert tensor elements to U.convolutionConvolve input with kernel.cosReturn elementwise cosine.detReturn the determinant of a matrix.diagonalReturn the diagonal of a matrix.dotMultiply and reduce two tensors over configured axes.equalReturn elementwise equality.expReturn elementwise exponential.expandDimsInsert a length-one axis.fillFill view with value.gatherGather slices from operand.geluReturn Gaussian error linear activation.greaterReturn elementwise greater-than comparison.greaterEqualReturn elementwise greater-than-or-equal comparison.innerReturn the inner product of two vectors.inverseReturn the inverse of a matrix.layerNormReturn layer-normalized values.lessReturn elementwise less-than comparison.lessEqualReturn elementwise less-than-or-equal comparison.loadLoad one tensor element from view.logReturn elementwise natural logarithm.logSoftmaxReturn log-softmax over one axis.matmulMatrix multiply rank-two tensors.maxReturn maximum values of tensor along the axes in axisSet.maxPoolReturn max-pooled values.meanReturn the mean of tensor along the axes in axisSet.minReturn minimum values of tensor along the axes in axisSet.negativeReturn elementwise negation.normReturn vector or matrix norm along axes.normalReturn values sampled from the standard normal distribution.notEqualReturn elementwise inequality.outerReturn the outer product of two vectors.padPad tensor.productMultiply elements of tensor along the axes in axisSet.qrReturn the QR factorization.reformatCopy tensor data into a new format.reluReturn rectified linear activation.reshapeReshape tensor to shape.scatterScatter updates into operand.selectSelect tensor elements from thenValue or elseValue.sigmoidReturn logistic sigmoid activation.sinReturn elementwise sine.sliceSlice tensor by window.softmaxReturn softmax over one axis.solveSolve a linear system.splatBuild a tensor by repeating value.sqrtReturn elementwise square root.squeezeRemove length-one axes.stackStack tensors along a new axis.storeStore one tensor element into view.sumSum tensor along the axes in axisSet.svdReturn the singular value decomposition.tanReturn elementwise tangent.traceReturn the trace of a matrix.transposeTranspose tensor by permutation.uniformReturn values sampled uniformly from [0, 1).uniformRangeReturn values sampled uniformly from [low, high).