Backends/SiaNet.Backend.Torch/TypeGeneration.cs
/// <summary>
///   Get a string representation of the tensor.
/// </summary>
Get a string representation of the tensor.
Get a string representation of the tensor .
public override string ToString ()
        {
            var n = Dimensions;
            if (n == 0)
                    return "[]";
            StringBuilder sb = new StringBuilder ("[");
            for (int i = 0; i < n; i++) {
                    sb.Append (GetTensorDimension (i));
                    if (i + 1 < n)
                            sb.Append ("x");
            }
            sb.Append ("]");
            return sb.ToString ();
        }
public override string ToString ( ) { var n = Dimensions ; if ( n == 0 ) return " " ; StringBuilder sb = new StringBuilder ( " " ) ; for ( int i = 0 ; i < n ; i ++ ) { sb . Append ( GetTensorDimension ( i ) ) ; if ( i + 1 < n ) sb . Append ( " " ) ; } sb . Append ( " " ) ; return sb . ToString ( ) ; }
Get a string representation of the tensor.
Get a string representation of the tensor .