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
TestInitCos(Tensor, Int32, Single)
Declaration
public static void TestInitCos(this Tensor X, int n = -1, float offset = 0F)
Parameters
TestInitValue(Tensor, Single, Int32)
Declaration
public static void TestInitValue(this Tensor X, float value = 0.1F, int n = -1)
Parameters
WrapIndex(Int32, Int32)
Declaration
public static int WrapIndex(int i, int length)
Parameters
Returns
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.