Backends/SiaNet.Backend.Torch/TypeGeneration.cs
/// <summary>
///   Create a new tensor with a specified storage arena.
/// </summary>        
/// <param name="storage">Storage arena.</param>
/// <param name="offset">Offset within the input storage the storage of the new tensor will start from.</param> 
/// <param name="size">Size of the first dimension.</param>     
/// <param name="stride">Stride of the first dimension.</param>          
Create a new tensor with a specified storage arena.
Create a new tensor with a specified storage arena .
public static IntTensor NewWithStorage1d(IntTensor.IntStorage storage, UIntPtr offset, long size, long stride)
        {
            var result = new IntTensor(THIntTensor_newWithStorage1d(storage.handle, offset, size, stride));
            return result;
        }
public static IntTensor NewWithStorage1d ( IntTensor . IntStorage storage , UIntPtr offset , long size , long stride ) { var result = new IntTensor ( THIntTensor_newWithStorage1d ( storage . handle , offset , size , stride ) ) ; return result ; }
Create a new tensor with a specified storage arena.
Create a new tensor with a specified storage arena .
storage
IntTensor.IntStorage
None
offset
UIntPtr
Offset within the input storage the storage of the new tensor will start from.
Offset within the input storage the storage of the new tensor will start from .
size
long
Size of the first dimension.
Size of the first dimension .
stride
long
Stride of the first dimension.
Stride of the first dimension .