Ejemplo n.º 1
0
 public uint[] GetUIntShape()
 {
     return(Dims.Select(x => (uint)x).ToArray());
 }
Ejemplo n.º 2
0
 public Shape Pad(Array <int> paddings)
 {
     return(new Shape(Dims.Select((D, i) => D + 2 * paddings[i])));
 }
Ejemplo n.º 3
0
 public long[] GetLongShape()
 {
     return(Dims.Select(x => (long)x).ToArray());
 }
Ejemplo n.º 4
0
 public int GetIndex(params int[] dimensions)
 {
     return(Dims.Select((t, i) => dimensions[i] * Strides[i]).Sum());
 }