Class ReferenceCPUOps | Barracuda | 1.1.2-preview
docs.unity.cn
    Show / Hide Table of Contents

    Class ReferenceCPUOps

    Inheritance
    Object
    ReferenceCPUOps
    ReferenceComputeOps
    UnsafeArrayCPUOps
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Barracuda
    Syntax
    public class ReferenceCPUOps : IOps

    Constructors

    ReferenceCPUOps(ITensorAllocator)

    Declaration
    public ReferenceCPUOps(ITensorAllocator allocator = null)
    Parameters
    Type Name Description
    ITensorAllocator allocator

    Methods

    Abs(Tensor)

    Declaration
    public virtual Tensor Abs(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Abs(Tensor)

    Acos(Tensor)

    Declaration
    public virtual Tensor Acos(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Acos(Tensor)

    Acosh(Tensor)

    Declaration
    public virtual Tensor Acosh(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Acosh(Tensor)

    Add(Tensor[])

    Declaration
    public virtual Tensor Add(Tensor[] tensors)
    Parameters
    Type Name Description
    Tensor[] tensors
    Returns
    Type Description
    Tensor
    Implements
    IOps.Add(Tensor[])

    Asin(Tensor)

    Declaration
    public virtual Tensor Asin(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Asin(Tensor)

    Asinh(Tensor)

    Declaration
    public virtual Tensor Asinh(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Asinh(Tensor)

    Atan(Tensor)

    Declaration
    public virtual Tensor Atan(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Atan(Tensor)

    Atanh(Tensor)

    Declaration
    public virtual Tensor Atanh(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Atanh(Tensor)

    AvgPool2D(Tensor, Int32[], Int32[], Int32[])

    Declaration
    public virtual Tensor AvgPool2D(Tensor X, int[] pool, int[] stride, int[] pad)
    Parameters
    Type Name Description
    Tensor X
    Int32[] pool
    Int32[] stride
    Int32[] pad
    Returns
    Type Description
    Tensor
    Implements
    IOps.AvgPool2D(Tensor, Int32[], Int32[], Int32[])

    Bernoulli(Single)

    Declaration
    protected float Bernoulli(float p)
    Parameters
    Type Name Description
    Single p
    Returns
    Type Description
    Single

    Border2D(Tensor, Int32[], Single)

    Declaration
    public virtual Tensor Border2D(Tensor X, int[] pad, float value)
    Parameters
    Type Name Description
    Tensor X
    Int32[] pad
    Single value
    Returns
    Type Description
    Tensor
    Implements
    IOps.Border2D(Tensor, Int32[], Single)

    Ceil(Tensor)

    Declaration
    public virtual Tensor Ceil(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Ceil(Tensor)

    Clip(Tensor, Single, Single)

    Declaration
    public virtual Tensor Clip(Tensor X, float min, float max)
    Parameters
    Type Name Description
    Tensor X
    Single min
    Single max
    Returns
    Type Description
    Tensor
    Implements
    IOps.Clip(Tensor, Single, Single)

    Concat(Tensor[], Int32)

    Declaration
    public virtual Tensor Concat(Tensor[] tensors, int axis)
    Parameters
    Type Name Description
    Tensor[] tensors
    Int32 axis
    Returns
    Type Description
    Tensor
    Implements
    IOps.Concat(Tensor[], Int32)

    Conv2D(Tensor, Tensor, Tensor, Int32[], Int32[], Layer.FusedActivation)

    Declaration
    public virtual Tensor Conv2D(Tensor X, Tensor K, Tensor B, int[] stride, int[] pad, Layer.FusedActivation fusedActivation)
    Parameters
    Type Name Description
    Tensor X
    Tensor K
    Tensor B
    Int32[] stride
    Int32[] pad
    Layer.FusedActivation fusedActivation
    Returns
    Type Description
    Tensor
    Implements
    IOps.Conv2D(Tensor, Tensor, Tensor, Int32[], Int32[], Layer.FusedActivation)

    Conv2DTrans(Tensor, Tensor, Tensor, Int32[], Int32[], Int32[], Layer.FusedActivation)

    Declaration
    public virtual Tensor Conv2DTrans(Tensor X, Tensor K, Tensor B, int[] stride, int[] pad, int[] outputAdjustment, Layer.FusedActivation fusedActivation)
    Parameters
    Type Name Description
    Tensor X
    Tensor K
    Tensor B
    Int32[] stride
    Int32[] pad
    Int32[] outputAdjustment
    Layer.FusedActivation fusedActivation
    Returns
    Type Description
    Tensor
    Implements
    IOps.Conv2DTrans(Tensor, Tensor, Tensor, Int32[], Int32[], Int32[], Layer.FusedActivation)

    Copy(Tensor)

    Declaration
    public virtual Tensor Copy(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Copy(Tensor)

    CopyAndReshape(Tensor, TensorShape)

    Declaration
    protected virtual Tensor CopyAndReshape(Tensor X, TensorShape shape)
    Parameters
    Type Name Description
    Tensor X
    TensorShape shape
    Returns
    Type Description
    Tensor

    Cos(Tensor)

    Declaration
    public virtual Tensor Cos(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Cos(Tensor)

    Cosh(Tensor)

    Declaration
    public virtual Tensor Cosh(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Cosh(Tensor)

    Dense(Tensor, Tensor, Tensor, Layer.FusedActivation)

    Declaration
    public virtual Tensor Dense(Tensor X, Tensor W, Tensor B, Layer.FusedActivation fusedActivation)
    Parameters
    Type Name Description
    Tensor X
    Tensor W
    Tensor B
    Layer.FusedActivation fusedActivation
    Returns
    Type Description
    Tensor
    Implements
    IOps.Dense(Tensor, Tensor, Tensor, Layer.FusedActivation)

    DepthToSpace(Tensor, Int32[], Layer.DepthToSpaceMode)

    Declaration
    public virtual Tensor DepthToSpace(Tensor X, int[] blocksize, Layer.DepthToSpaceMode mode)
    Parameters
    Type Name Description
    Tensor X
    Int32[] blocksize
    Layer.DepthToSpaceMode mode
    Returns
    Type Description
    Tensor
    Implements
    IOps.DepthToSpace(Tensor, Int32[], Layer.DepthToSpaceMode)

    DepthwiseConv2D(Tensor, Tensor, Tensor, Int32[], Int32[], Layer.FusedActivation)

    Declaration
    public virtual Tensor DepthwiseConv2D(Tensor X, Tensor K, Tensor B, int[] stride, int[] pad, Layer.FusedActivation fusedActivation)
    Parameters
    Type Name Description
    Tensor X
    Tensor K
    Tensor B
    Int32[] stride
    Int32[] pad
    Layer.FusedActivation fusedActivation
    Returns
    Type Description
    Tensor
    Implements
    IOps.DepthwiseConv2D(Tensor, Tensor, Tensor, Int32[], Int32[], Layer.FusedActivation)

    Div(Tensor[])

    Declaration
    public virtual Tensor Div(Tensor[] tensors)
    Parameters
    Type Name Description
    Tensor[] tensors
    Returns
    Type Description
    Tensor
    Implements
    IOps.Div(Tensor[])

    Dropout(Tensor, Single)

    Declaration
    public virtual Tensor Dropout(Tensor X, float alpha)
    Parameters
    Type Name Description
    Tensor X
    Single alpha
    Returns
    Type Description
    Tensor
    Implements
    IOps.Dropout(Tensor, Single)

    Elu(Tensor, Single)

    Declaration
    public virtual Tensor Elu(Tensor X, float alpha)
    Parameters
    Type Name Description
    Tensor X
    Single alpha
    Returns
    Type Description
    Tensor
    Implements
    IOps.Elu(Tensor, Single)

    Equal(Tensor, Tensor)

    Declaration
    public virtual Tensor Equal(Tensor A, Tensor B)
    Parameters
    Type Name Description
    Tensor A
    Tensor B
    Returns
    Type Description
    Tensor
    Implements
    IOps.Equal(Tensor, Tensor)

    Exp(Tensor)

    Declaration
    public virtual Tensor Exp(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Exp(Tensor)

    Expand(Tensor, TensorShape)

    Declaration
    public virtual Tensor Expand(Tensor X, TensorShape newShape)
    Parameters
    Type Name Description
    Tensor X
    TensorShape newShape
    Returns
    Type Description
    Tensor
    Implements
    IOps.Expand(Tensor, TensorShape)

    Flatten(Tensor)

    Declaration
    public virtual Tensor Flatten(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Flatten(Tensor)

    Floor(Tensor)

    Declaration
    public virtual Tensor Floor(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Floor(Tensor)

    Gather(Tensor[], Int32)

    Declaration
    public virtual Tensor Gather(Tensor[] tensors, int axis)
    Parameters
    Type Name Description
    Tensor[] tensors
    Int32 axis
    Returns
    Type Description
    Tensor
    Implements
    IOps.Gather(Tensor[], Int32)

    Gaussian(Single, Single)

    Declaration
    protected float Gaussian(float mean, float stdDev)
    Parameters
    Type Name Description
    Single mean
    Single stdDev
    Returns
    Type Description
    Single

    GlobalAvgPool2D(Tensor)

    Declaration
    public virtual Tensor GlobalAvgPool2D(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.GlobalAvgPool2D(Tensor)

    GlobalAvgVariancePool2D(Tensor)

    Declaration
    public virtual Tensor GlobalAvgVariancePool2D(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.GlobalAvgVariancePool2D(Tensor)

    GlobalMaxPool2D(Tensor)

    Declaration
    public virtual Tensor GlobalMaxPool2D(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.GlobalMaxPool2D(Tensor)

    Greater(Tensor, Tensor)

    Declaration
    public virtual Tensor Greater(Tensor A, Tensor B)
    Parameters
    Type Name Description
    Tensor A
    Tensor B
    Returns
    Type Description
    Tensor
    Implements
    IOps.Greater(Tensor, Tensor)

    GreaterEqual(Tensor, Tensor)

    Declaration
    public virtual Tensor GreaterEqual(Tensor A, Tensor B)
    Parameters
    Type Name Description
    Tensor A
    Tensor B
    Returns
    Type Description
    Tensor
    Implements
    IOps.GreaterEqual(Tensor, Tensor)

    LeakyRelu(Tensor, Single)

    Declaration
    public virtual Tensor LeakyRelu(Tensor X, float alpha)
    Parameters
    Type Name Description
    Tensor X
    Single alpha
    Returns
    Type Description
    Tensor
    Implements
    IOps.LeakyRelu(Tensor, Single)

    Less(Tensor, Tensor)

    Declaration
    public virtual Tensor Less(Tensor A, Tensor B)
    Parameters
    Type Name Description
    Tensor A
    Tensor B
    Returns
    Type Description
    Tensor
    Implements
    IOps.Less(Tensor, Tensor)

    LessEqual(Tensor, Tensor)

    Declaration
    public virtual Tensor LessEqual(Tensor A, Tensor B)
    Parameters
    Type Name Description
    Tensor A
    Tensor B
    Returns
    Type Description
    Tensor
    Implements
    IOps.LessEqual(Tensor, Tensor)

    Log(Tensor)

    Declaration
    public virtual Tensor Log(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Log(Tensor)

    LogicalAnd(Tensor, Tensor)

    Declaration
    public virtual Tensor LogicalAnd(Tensor A, Tensor B)
    Parameters
    Type Name Description
    Tensor A
    Tensor B
    Returns
    Type Description
    Tensor
    Implements
    IOps.LogicalAnd(Tensor, Tensor)

    LogicalNot(Tensor)

    Declaration
    public virtual Tensor LogicalNot(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.LogicalNot(Tensor)

    LogicalOr(Tensor, Tensor)

    Declaration
    public virtual Tensor LogicalOr(Tensor A, Tensor B)
    Parameters
    Type Name Description
    Tensor A
    Tensor B
    Returns
    Type Description
    Tensor
    Implements
    IOps.LogicalOr(Tensor, Tensor)

    LogicalXor(Tensor, Tensor)

    Declaration
    public virtual Tensor LogicalXor(Tensor A, Tensor B)
    Parameters
    Type Name Description
    Tensor A
    Tensor B
    Returns
    Type Description
    Tensor
    Implements
    IOps.LogicalXor(Tensor, Tensor)

    LogSoftmax(Tensor)

    Declaration
    public virtual Tensor LogSoftmax(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.LogSoftmax(Tensor)

    LRN(Tensor, Single, Single, Single, Int32)

    Declaration
    public virtual Tensor LRN(Tensor X, float alpha, float beta, float bias, int size)
    Parameters
    Type Name Description
    Tensor X
    Single alpha
    Single beta
    Single bias
    Int32 size
    Returns
    Type Description
    Tensor
    Implements
    IOps.LRN(Tensor, Single, Single, Single, Int32)

    MatMul(Tensor, Boolean, Tensor, Boolean)

    Declaration
    public virtual Tensor MatMul(Tensor X, bool xTranspose, Tensor Y, bool yTranspose)
    Parameters
    Type Name Description
    Tensor X
    Boolean xTranspose
    Tensor Y
    Boolean yTranspose
    Returns
    Type Description
    Tensor
    Implements
    IOps.MatMul(Tensor, Boolean, Tensor, Boolean)

    Max(Tensor[])

    Declaration
    public virtual Tensor Max(Tensor[] tensors)
    Parameters
    Type Name Description
    Tensor[] tensors
    Returns
    Type Description
    Tensor
    Implements
    IOps.Max(Tensor[])

    MaxPool2D(Tensor, Int32[], Int32[], Int32[])

    Declaration
    public virtual Tensor MaxPool2D(Tensor X, int[] pool, int[] stride, int[] pad)
    Parameters
    Type Name Description
    Tensor X
    Int32[] pool
    Int32[] stride
    Int32[] pad
    Returns
    Type Description
    Tensor
    Implements
    IOps.MaxPool2D(Tensor, Int32[], Int32[], Int32[])

    Mean(Tensor[])

    Declaration
    public virtual Tensor Mean(Tensor[] tensors)
    Parameters
    Type Name Description
    Tensor[] tensors
    Returns
    Type Description
    Tensor
    Implements
    IOps.Mean(Tensor[])

    Min(Tensor[])

    Declaration
    public virtual Tensor Min(Tensor[] tensors)
    Parameters
    Type Name Description
    Tensor[] tensors
    Returns
    Type Description
    Tensor
    Implements
    IOps.Min(Tensor[])

    Mul(Tensor[])

    Declaration
    public virtual Tensor Mul(Tensor[] tensors)
    Parameters
    Type Name Description
    Tensor[] tensors
    Returns
    Type Description
    Tensor
    Implements
    IOps.Mul(Tensor[])

    Multinomial(Tensor, Int32, Int32)

    Declaration
    public virtual Tensor Multinomial(Tensor X, int count, int seed)
    Parameters
    Type Name Description
    Tensor X
    Int32 count
    Int32 seed
    Returns
    Type Description
    Tensor
    Implements
    IOps.Multinomial(Tensor, Int32, Int32)

    Neg(Tensor)

    Declaration
    public virtual Tensor Neg(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Neg(Tensor)

    NewTensor(Int32, Int32, Int32, Int32, String)

    Declaration
    protected Tensor NewTensor(int b, int h, int w, int ch, string name = "")
    Parameters
    Type Name Description
    Int32 b
    Int32 h
    Int32 w
    Int32 ch
    String name
    Returns
    Type Description
    Tensor

    NewTensor(Int32, Int32, String)

    Declaration
    protected Tensor NewTensor(int b, int ch, string name = "")
    Parameters
    Type Name Description
    Int32 b
    Int32 ch
    String name
    Returns
    Type Description
    Tensor

    NewTensor(TensorShape, String)

    Declaration
    protected Tensor NewTensor(TensorShape s, string name = "")
    Parameters
    Type Name Description
    TensorShape s
    String name
    Returns
    Type Description
    Tensor

    NewTensorLike(Tensor)

    Declaration
    protected Tensor NewTensorLike(Tensor t)
    Parameters
    Type Name Description
    Tensor t
    Returns
    Type Description
    Tensor

    NewTensorLike(Tensor[])

    Declaration
    protected Tensor NewTensorLike(Tensor[] tensors)
    Parameters
    Type Name Description
    Tensor[] tensors
    Returns
    Type Description
    Tensor

    Normalization(Tensor, Tensor, Tensor, Int32, Int32, Single, Layer.FusedActivation)

    Declaration
    public virtual Tensor Normalization(Tensor X, Tensor S, Tensor B, int pool, int axis, float epsilon, Layer.FusedActivation fusedActivation)
    Parameters
    Type Name Description
    Tensor X
    Tensor S
    Tensor B
    Int32 pool
    Int32 axis
    Single epsilon
    Layer.FusedActivation fusedActivation
    Returns
    Type Description
    Tensor
    Implements
    IOps.Normalization(Tensor, Tensor, Tensor, Int32, Int32, Single, Layer.FusedActivation)

    OneHot(Tensor, Int32, Single, Single)

    Declaration
    public virtual Tensor OneHot(Tensor X, int depth, float onValue, float offValue)
    Parameters
    Type Name Description
    Tensor X
    Int32 depth
    Single onValue
    Single offValue
    Returns
    Type Description
    Tensor
    Implements
    IOps.OneHot(Tensor, Int32, Single, Single)

    Pad2DEdge(Tensor, Int32[])

    Declaration
    public virtual Tensor Pad2DEdge(Tensor X, int[] pad)
    Parameters
    Type Name Description
    Tensor X
    Int32[] pad
    Returns
    Type Description
    Tensor
    Implements
    IOps.Pad2DEdge(Tensor, Int32[])

    Pad2DReflect(Tensor, Int32[])

    Declaration
    public virtual Tensor Pad2DReflect(Tensor X, int[] pad)
    Parameters
    Type Name Description
    Tensor X
    Int32[] pad
    Returns
    Type Description
    Tensor
    Implements
    IOps.Pad2DReflect(Tensor, Int32[])

    Pad2DSymmetric(Tensor, Int32[])

    Declaration
    public virtual Tensor Pad2DSymmetric(Tensor X, int[] pad)
    Parameters
    Type Name Description
    Tensor X
    Int32[] pad
    Returns
    Type Description
    Tensor
    Implements
    IOps.Pad2DSymmetric(Tensor, Int32[])

    Pow(Tensor, Single)

    Declaration
    public virtual Tensor Pow(Tensor X, float alpha)
    Parameters
    Type Name Description
    Tensor X
    Single alpha
    Returns
    Type Description
    Tensor
    Implements
    IOps.Pow(Tensor, Single)

    Pow(Tensor[])

    Declaration
    public virtual Tensor Pow(Tensor[] tensors)
    Parameters
    Type Name Description
    Tensor[] tensors
    Returns
    Type Description
    Tensor
    Implements
    IOps.Pow(Tensor[])

    PRelu(Tensor, Tensor)

    Declaration
    public virtual Tensor PRelu(Tensor X, Tensor S)
    Parameters
    Type Name Description
    Tensor X
    Tensor S
    Returns
    Type Description
    Tensor
    Implements
    IOps.PRelu(Tensor, Tensor)

    Prepare(Tensor)

    Declaration
    public virtual Tensor Prepare(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Prepare(Tensor)

    RandomNormal(TensorShape, Single, Single, Int32)

    Declaration
    public virtual Tensor RandomNormal(TensorShape s, float mean, float scale, int seed)
    Parameters
    Type Name Description
    TensorShape s
    Single mean
    Single scale
    Int32 seed
    Returns
    Type Description
    Tensor
    Implements
    IOps.RandomNormal(TensorShape, Single, Single, Int32)

    RandomUniform(TensorShape, Single, Single, Int32)

    Declaration
    public virtual Tensor RandomUniform(TensorShape s, float mean, float scale, int seed)
    Parameters
    Type Name Description
    TensorShape s
    Single mean
    Single scale
    Int32 seed
    Returns
    Type Description
    Tensor
    Implements
    IOps.RandomUniform(TensorShape, Single, Single, Int32)

    Reciprocal(Tensor)

    Declaration
    public virtual Tensor Reciprocal(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Reciprocal(Tensor)

    ReduceMax(Tensor, Int32)

    Declaration
    public virtual Tensor ReduceMax(Tensor X, int axis)
    Parameters
    Type Name Description
    Tensor X
    Int32 axis
    Returns
    Type Description
    Tensor
    Implements
    IOps.ReduceMax(Tensor, Int32)

    ReduceMean(Tensor, Int32)

    Declaration
    public virtual Tensor ReduceMean(Tensor X, int axis)
    Parameters
    Type Name Description
    Tensor X
    Int32 axis
    Returns
    Type Description
    Tensor
    Implements
    IOps.ReduceMean(Tensor, Int32)

    ReduceMin(Tensor, Int32)

    Declaration
    public virtual Tensor ReduceMin(Tensor X, int axis)
    Parameters
    Type Name Description
    Tensor X
    Int32 axis
    Returns
    Type Description
    Tensor
    Implements
    IOps.ReduceMin(Tensor, Int32)

    ReduceProd(Tensor, Int32)

    Declaration
    public virtual Tensor ReduceProd(Tensor X, int axis)
    Parameters
    Type Name Description
    Tensor X
    Int32 axis
    Returns
    Type Description
    Tensor
    Implements
    IOps.ReduceProd(Tensor, Int32)

    ReduceSum(Tensor, Int32)

    Declaration
    public virtual Tensor ReduceSum(Tensor X, int axis)
    Parameters
    Type Name Description
    Tensor X
    Int32 axis
    Returns
    Type Description
    Tensor
    Implements
    IOps.ReduceSum(Tensor, Int32)

    Relu(Tensor)

    Declaration
    public virtual Tensor Relu(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Relu(Tensor)

    Relu6(Tensor)

    Declaration
    public virtual Tensor Relu6(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Relu6(Tensor)

    Resample2D(Tensor, Int32[], Boolean)

    Declaration
    public virtual Tensor Resample2D(Tensor X, int[] size, bool bilinear)
    Parameters
    Type Name Description
    Tensor X
    Int32[] size
    Boolean bilinear
    Returns
    Type Description
    Tensor
    Implements
    IOps.Resample2D(Tensor, Int32[], Boolean)

    ResetAllocator(Boolean)

    Declaration
    public virtual void ResetAllocator(bool keepCachedMemory = true)
    Parameters
    Type Name Description
    Boolean keepCachedMemory
    Implements
    IOps.ResetAllocator(Boolean)

    Reshape(Tensor, TensorShape)

    Declaration
    public virtual Tensor Reshape(Tensor X, TensorShape newShape)
    Parameters
    Type Name Description
    Tensor X
    TensorShape newShape
    Returns
    Type Description
    Tensor
    Implements
    IOps.Reshape(Tensor, TensorShape)

    ScaleBias(Tensor, Tensor, Tensor)

    Declaration
    public virtual Tensor ScaleBias(Tensor X, Tensor S, Tensor B)
    Parameters
    Type Name Description
    Tensor X
    Tensor S
    Tensor B
    Returns
    Type Description
    Tensor
    Implements
    IOps.ScaleBias(Tensor, Tensor, Tensor)

    Selu(Tensor, Single, Single)

    Declaration
    public virtual Tensor Selu(Tensor X, float alpha, float gamma)
    Parameters
    Type Name Description
    Tensor X
    Single alpha
    Single gamma
    Returns
    Type Description
    Tensor
    Implements
    IOps.Selu(Tensor, Single, Single)

    Sigmoid(Tensor)

    Declaration
    public virtual Tensor Sigmoid(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Sigmoid(Tensor)

    Sin(Tensor)

    Declaration
    public virtual Tensor Sin(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Sin(Tensor)

    Sinh(Tensor)

    Declaration
    public virtual Tensor Sinh(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Sinh(Tensor)

    Softmax(Tensor)

    Declaration
    public virtual Tensor Softmax(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Softmax(Tensor)

    SpaceToDepth(Tensor, Int32[])

    Declaration
    public virtual Tensor SpaceToDepth(Tensor X, int[] blocksize)
    Parameters
    Type Name Description
    Tensor X
    Int32[] blocksize
    Returns
    Type Description
    Tensor
    Implements
    IOps.SpaceToDepth(Tensor, Int32[])

    Sqrt(Tensor)

    Declaration
    public virtual Tensor Sqrt(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Sqrt(Tensor)

    StridedSlice(Tensor, Int32[], Int32[], Int32[])

    Declaration
    public virtual Tensor StridedSlice(Tensor X, int[] starts, int[] ends, int[] stride)
    Parameters
    Type Name Description
    Tensor X
    Int32[] starts
    Int32[] ends
    Int32[] stride
    Returns
    Type Description
    Tensor
    Implements
    IOps.StridedSlice(Tensor, Int32[], Int32[], Int32[])

    Sub(Tensor[])

    Declaration
    public virtual Tensor Sub(Tensor[] tensors)
    Parameters
    Type Name Description
    Tensor[] tensors
    Returns
    Type Description
    Tensor
    Implements
    IOps.Sub(Tensor[])

    Swish(Tensor)

    Declaration
    public virtual Tensor Swish(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Swish(Tensor)

    Tan(Tensor)

    Declaration
    public virtual Tensor Tan(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Tan(Tensor)

    Tanh(Tensor)

    Declaration
    public virtual Tensor Tanh(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Tanh(Tensor)

    Tile(Tensor, Int32[])

    Declaration
    public virtual Tensor Tile(Tensor X, int[] repeats)
    Parameters
    Type Name Description
    Tensor X
    Int32[] repeats
    Returns
    Type Description
    Tensor
    Implements
    IOps.Tile(Tensor, Int32[])

    TopKIndices(Tensor, Int32, Int32, Boolean, Boolean)

    Declaration
    public virtual Tensor TopKIndices(Tensor X, int k, int axis, bool largest, bool sorted)
    Parameters
    Type Name Description
    Tensor X
    Int32 k
    Int32 axis
    Boolean largest
    Boolean sorted
    Returns
    Type Description
    Tensor
    Implements
    IOps.TopKIndices(Tensor, Int32, Int32, Boolean, Boolean)

    TopKValues(Tensor, Tensor, Int32)

    Declaration
    public virtual Tensor TopKValues(Tensor X, Tensor I, int axis)
    Parameters
    Type Name Description
    Tensor X
    Tensor I
    Int32 axis
    Returns
    Type Description
    Tensor
    Implements
    IOps.TopKValues(Tensor, Tensor, Int32)

    Transpose(Tensor)

    Declaration
    public virtual Tensor Transpose(Tensor X)
    Parameters
    Type Name Description
    Tensor X
    Returns
    Type Description
    Tensor
    Implements
    IOps.Transpose(Tensor)

    Transpose(Tensor, Int32[])

    Declaration
    public virtual Tensor Transpose(Tensor X, int[] permutations)
    Parameters
    Type Name Description
    Tensor X
    Int32[] permutations
    Returns
    Type Description
    Tensor
    Implements
    IOps.Transpose(Tensor, Int32[])

    Upsample2D(Tensor, Int32[], Boolean)

    Declaration
    public virtual Tensor Upsample2D(Tensor X, int[] scale, bool bilinear)
    Parameters
    Type Name Description
    Tensor X
    Int32[] scale
    Boolean bilinear
    Returns
    Type Description
    Tensor
    Implements
    IOps.Upsample2D(Tensor, Int32[], Boolean)
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 15 October 2020