Backends/SiaNet.Backend.Torch/TypeGeneration.cs
/// <summary>
///   Create an identity matrix of shape m x n.
/// </summary>
/// <param name="m">The number of rows</param>
/// <param name="n">The number of columns</param>
Create an identity matrix of shape m x n.
Create an identity matrix of shape m x n .
public static FloatTensor Eye (long m, long n)
        {
            var result = new FloatTensor();
            THFloatTensor_eye(result.handle, m, n);
            return result;
        }
public static FloatTensor Eye ( long m , long n ) { var result = new FloatTensor ( ) ; THFloatTensor_eye ( result . handle , m , n ) ; return result ; }
Create an identity matrix of shape m x n.
Create an identity matrix of shape m x n .
m
long
The number of rows
The number of rows
n
long
The number of columns
The number of columns