Class Tensor
Inheritance
System.Object
Tensor
Implements
System.IDisposable
Assembly: SiaNet.Engine.dll
Syntax
[DataContract]
public abstract class Tensor : IDisposable
Constructors
|
Improve this Doc
View Source
Tensor()
Declaration
|
Improve this Doc
View Source
Tensor(IBackend)
Declaration
public Tensor(IBackend backend)
Parameters
Fields
|
Improve this Doc
View Source
K
Declaration
Field Value
Properties
|
Improve this Doc
View Source
DataFloat
Declaration
public float[] DataFloat { get; }
Property Value
Type |
Description |
System.Single[] |
|
|
Improve this Doc
View Source
DimCount
Declaration
public int DimCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
ElementCount
Declaration
public long ElementCount { get; }
Property Value
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
ElementType
Declaration
public DataType ElementType { get; }
Property Value
|
Improve this Doc
View Source
IsScalar
Declaration
public bool IsScalar { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsVector
Declaration
public bool IsVector { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Name
Declaration
public abstract string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Shape
Declaration
public long[] Shape { get; }
Property Value
Type |
Description |
System.Int64[] |
|
Methods
|
Improve this Doc
View Source
Dispose()
Declaration
|
Improve this Doc
View Source
Eval()
Declaration
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
GetConv1DShape()
Declaration
public (long, long, long)GetConv1DShape()
Returns
Type |
Description |
System.ValueTuple<System.Int64, System.Int64, System.Int64> |
|
|
Improve this Doc
View Source
GetConv2DShape()
Declaration
public (long, long, long, long)GetConv2DShape()
Returns
Type |
Description |
System.ValueTuple<System.Int64, System.Int64, System.Int64, System.Int64> |
|
|
Improve this Doc
View Source
GetConv3DShape()
Declaration
public (long, long, long, long, long)GetConv3DShape()
Returns
Type |
Description |
System.ValueTuple<System.Int64, System.Int64, System.Int64, System.Int64, System.Int64> |
|
|
Improve this Doc
View Source
GetTypeCode()
Declaration
public TypeCode GetTypeCode()
Returns
Type |
Description |
System.TypeCode |
|
|
Improve this Doc
View Source
Print(String)
Declaration
public void Print(string title = "")
Parameters
Type |
Name |
Description |
System.String |
title |
|
|
Improve this Doc
View Source
RepeatTensor(Int64, Int32)
Declaration
public Tensor RepeatTensor(long n, int dim)
Parameters
Type |
Name |
Description |
System.Int64 |
n |
|
System.Int32 |
dim |
|
Returns
|
Improve this Doc
View Source
Reshape(Int64[])
Declaration
public Tensor Reshape(params long[] dims)
Parameters
Type |
Name |
Description |
System.Int64[] |
dims |
|
Returns
|
Improve this Doc
View Source
SliceCols(Int64, Int64)
Declaration
public Tensor SliceCols(long start, long end)
Parameters
Type |
Name |
Description |
System.Int64 |
start |
|
System.Int64 |
end |
|
Returns
|
Improve this Doc
View Source
SliceRows(Int64, Int64)
Declaration
public Tensor SliceRows(long start, long end)
Parameters
Type |
Name |
Description |
System.Int64 |
start |
|
System.Int64 |
end |
|
Returns
|
Improve this Doc
View Source
ToArray()
Declaration
Returns
Type |
Description |
System.Array |
|
|
Improve this Doc
View Source
ToScalar()
Declaration
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Transpose()
Declaration
public Tensor Transpose()
Returns
|
Improve this Doc
View Source
Transpose(Int32[])
Declaration
public Tensor Transpose(params int[] dims)
Parameters
Type |
Name |
Description |
System.Int32[] |
dims |
|
Returns
Operators
|
Improve this Doc
View Source
Addition(Tensor, Tensor)
Declaration
public static Tensor operator +(Tensor a, Tensor b)
Parameters
Returns
|
Improve this Doc
View Source
Addition(Tensor, Single)
Declaration
public static Tensor operator +(Tensor a, float b)
Parameters
Type |
Name |
Description |
Tensor |
a |
|
System.Single |
b |
|
Returns
|
Improve this Doc
View Source
Addition(Single, Tensor)
Declaration
public static Tensor operator +(float a, Tensor b)
Parameters
Type |
Name |
Description |
System.Single |
a |
|
Tensor |
b |
|
Returns
|
Improve this Doc
View Source
Division(Tensor, Tensor)
Declaration
public static Tensor operator /(Tensor a, Tensor b)
Parameters
Returns
|
Improve this Doc
View Source
Division(Tensor, Single)
Declaration
public static Tensor operator /(Tensor a, float b)
Parameters
Type |
Name |
Description |
Tensor |
a |
|
System.Single |
b |
|
Returns
|
Improve this Doc
View Source
Division(Single, Tensor)
Declaration
public static Tensor operator /(float a, Tensor b)
Parameters
Type |
Name |
Description |
System.Single |
a |
|
Tensor |
b |
|
Returns
|
Improve this Doc
View Source
GreaterThan(Tensor, Tensor)
Declaration
public static Tensor operator>(Tensor a, Tensor b)
Parameters
Returns
|
Improve this Doc
View Source
GreaterThan(Tensor, Single)
Declaration
public static Tensor operator>(Tensor a, float b)
Parameters
Type |
Name |
Description |
Tensor |
a |
|
System.Single |
b |
|
Returns
|
Improve this Doc
View Source
GreaterThan(Single, Tensor)
Declaration
public static Tensor operator>(float a, Tensor b)
Parameters
Type |
Name |
Description |
System.Single |
a |
|
Tensor |
b |
|
Returns
|
Improve this Doc
View Source
GreaterThanOrEqual(Tensor, Tensor)
Declaration
public static Tensor operator >=(Tensor a, Tensor b)
Parameters
Returns
|
Improve this Doc
View Source
GreaterThanOrEqual(Tensor, Single)
Declaration
public static Tensor operator >=(Tensor a, float b)
Parameters
Type |
Name |
Description |
Tensor |
a |
|
System.Single |
b |
|
Returns
|
Improve this Doc
View Source
GreaterThanOrEqual(Single, Tensor)
Declaration
public static Tensor operator >=(float a, Tensor b)
Parameters
Type |
Name |
Description |
System.Single |
a |
|
Tensor |
b |
|
Returns
|
Improve this Doc
View Source
LessThan(Tensor, Tensor)
Declaration
public static Tensor operator <(Tensor a, Tensor b)
Parameters
Returns
|
Improve this Doc
View Source
LessThan(Tensor, Single)
Declaration
public static Tensor operator <(Tensor a, float b)
Parameters
Type |
Name |
Description |
Tensor |
a |
|
System.Single |
b |
|
Returns
|
Improve this Doc
View Source
LessThan(Single, Tensor)
Declaration
public static Tensor operator <(float a, Tensor b)
Parameters
Type |
Name |
Description |
System.Single |
a |
|
Tensor |
b |
|
Returns
|
Improve this Doc
View Source
LessThanOrEqual(Tensor, Tensor)
Declaration
public static Tensor operator <=(Tensor a, Tensor b)
Parameters
Returns
|
Improve this Doc
View Source
LessThanOrEqual(Tensor, Single)
Declaration
public static Tensor operator <=(Tensor a, float b)
Parameters
Type |
Name |
Description |
Tensor |
a |
|
System.Single |
b |
|
Returns
|
Improve this Doc
View Source
LessThanOrEqual(Single, Tensor)
Declaration
public static Tensor operator <=(float a, Tensor b)
Parameters
Type |
Name |
Description |
System.Single |
a |
|
Tensor |
b |
|
Returns
|
Improve this Doc
View Source
Multiply(Tensor, Tensor)
Declaration
public static Tensor operator *(Tensor a, Tensor b)
Parameters
Returns
|
Improve this Doc
View Source
Multiply(Tensor, Single)
Declaration
public static Tensor operator *(Tensor a, float b)
Parameters
Type |
Name |
Description |
Tensor |
a |
|
System.Single |
b |
|
Returns
|
Improve this Doc
View Source
Multiply(Single, Tensor)
Declaration
public static Tensor operator *(float a, Tensor b)
Parameters
Type |
Name |
Description |
System.Single |
a |
|
Tensor |
b |
|
Returns
|
Improve this Doc
View Source
Subtraction(Tensor, Tensor)
Declaration
public static Tensor operator -(Tensor a, Tensor b)
Parameters
Returns
|
Improve this Doc
View Source
Subtraction(Tensor, Single)
Declaration
public static Tensor operator -(Tensor a, float b)
Parameters
Type |
Name |
Description |
Tensor |
a |
|
System.Single |
b |
|
Returns
|
Improve this Doc
View Source
Subtraction(Single, Tensor)
Declaration
public static Tensor operator -(float a, Tensor b)
Parameters
Type |
Name |
Description |
System.Single |
a |
|
Tensor |
b |
|
Returns
Implements
System.IDisposable