Class TensorExtensions
Inheritance
TensorExtensions
Syntax
public static class TensorExtensions
Methods
AdjustPadToKernel(Tensor, Tensor, Int32[], Int32[])
Declaration
public static int[] AdjustPadToKernel(this Tensor tensor, Tensor kernel, int[] stride, int[] pad)
Parameters
Returns
AdjustPadToKernel(TensorShape, TensorShape, Int32[], Int32[])
Declaration
public static int[] AdjustPadToKernel(this TensorShape shape, TensorShape kernel, int[] stride, int[] pad)
Parameters
Returns
AdjustPadToPool(Tensor, Int32[], Int32[], Int32[])
Declaration
public static int[] AdjustPadToPool(this Tensor tensor, int[] pool, int[] stride, int[] pad)
Parameters
Returns
AdjustPadToPool(TensorShape, Int32[], Int32[], Int32[])
Declaration
public static int[] AdjustPadToPool(this TensorShape shape, int[] pool, int[] stride, int[] pad)
Parameters
Returns
ApplyBorder(TensorShape, Int32[])
Declaration
public static TensorShape ApplyBorder(this TensorShape shape, int[] border)
Parameters
Returns
ApplyKernel(TensorShape, TensorShape, Int32[], Int32[])
Declaration
public static TensorShape ApplyKernel(this TensorShape shape, TensorShape kernel, int[] stride, int[] pad)
Parameters
Returns
ApplyKernelInverse(TensorShape, TensorShape, Int32[], Int32[], Int32[])
Declaration
public static TensorShape ApplyKernelInverse(this TensorShape shape, TensorShape kernel, int[] stride, int[] pad, int[] outputAdjustment)
Parameters
Returns
ApplyPool(TensorShape, Int32[], Int32[], Int32[])
Declaration
public static TensorShape ApplyPool(this TensorShape shape, int[] pool, int[] stride, int[] pad)
Parameters
Returns
ApplyStridedSlice(TensorShape, Int32[], Int32[], Int32[])
Declaration
public static TensorShape ApplyStridedSlice(this TensorShape shape, int[] starts, int[] ends, int[] stride)
Parameters
Returns
Approximately(Tensor, Tensor, Single, Int32)
Declaration
public static bool Approximately(this Tensor X, Tensor Y, float epsilon = 0.0001F, int count = -1)
Parameters
Returns
ArgMax(Tensor)
Declaration
public static int[] ArgMax(this Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
ArgSort(Tensor)
Declaration
public static int[][] ArgSort(this Tensor X)
Parameters
Type |
Name |
Description |
Tensor |
X |
|
Returns
Type |
Description |
Int32[][] |
|
AsFloats(Tensor)
Declaration
public static float[] AsFloats(this Tensor x)
Parameters
Type |
Name |
Description |
Tensor |
x |
|
Returns
AsInts(Tensor)
Declaration
public static int[] AsInts(this Tensor x)
Parameters
Type |
Name |
Description |
Tensor |
x |
|
Returns
AsLongs(Tensor)
Declaration
public static long[] AsLongs(this Tensor x)
Parameters
Type |
Name |
Description |
Tensor |
x |
|
Returns
Concat(TensorShape[], Int32)
Declaration
public static TensorShape Concat(TensorShape[] shapes, int axis)
Parameters
Returns
ConcatShapes(Tensor[], Int32)
Declaration
public static TensorShape ConcatShapes(Tensor[] tensors, int axis)
Parameters
Returns
CreateFromTexture(Texture, TensorShape)
Declaration
public static ITensorData CreateFromTexture(Texture tex, TensorShape shape)
Parameters
Returns
DataToString(Tensor, Int32)
Declaration
public static string DataToString(this Tensor X, int size = 32)
Parameters
Returns
Equals(Tensor, Tensor)
Declaration
public static bool Equals(this Tensor X, Tensor Y)
Parameters
Returns
Gather(TensorShape[], Int32)
Declaration
public static TensorShape Gather(TensorShape[] shapes, int axis)
Parameters
Returns
Max(TensorShape[])
Declaration
public static TensorShape Max(TensorShape[] shapes)
Parameters
Returns
MaxDifference(Tensor, Tensor)
Declaration
public static float MaxDifference(this Tensor X, Tensor Y)
Parameters
Returns
MaxShape(Tensor[])
Declaration
public static TensorShape MaxShape(Tensor[] tensors)
Parameters
Type |
Name |
Description |
Tensor[] |
tensors |
|
Returns
Print(Tensor, String)
Declaration
public static void Print(this Tensor X, string msg = "")
Parameters
PrintDataPart(Tensor, Int32, String)
Declaration
public static void PrintDataPart(this Tensor X, int size, string msg = "")
Parameters
Reduce(TensorShape, Int32)
Declaration
public static TensorShape Reduce(this TensorShape shape, int axis)
Parameters
Returns
Reshape(Tensor, Int32[])
Declaration
public static Tensor Reshape(this Tensor X, int[] size)
Parameters
Returns
Reshape(TensorShape, Int32[])
Declaration
public static TensorShape Reshape(this TensorShape shape, int[] size)
Parameters
Returns
Scale(TensorShape, TensorShape)
Declaration
public static TensorShape Scale(this TensorShape shape, TensorShape scale)
Parameters
Returns
Scale(TensorShape, Int32[])
Declaration
public static TensorShape Scale(this TensorShape shape, int[] scale)
Parameters
Returns
TestInit(Tensor, Int32)
Declaration
public static void TestInit(this Tensor X, int n = -1)
Parameters
TestInit2(Tensor, Int32)
Declaration
public static void TestInit2(this Tensor X, int n = -1)
Parameters
TestInitCos(Tensor, Int32)
Declaration
public static void TestInitCos(this Tensor X, int n = -1)
Parameters
WrapIndex(Int32, Int32)
Declaration
public static int WrapIndex(int i, int length)
Parameters
Returns