예제 #1
0
 private Shape NDShape(params long[] shape)
 {
     return(new Shape(BackendUtil.CastShapeUInt(shape)));
 }
예제 #2
0
        public Tensor Transpose(Tensor x, params int[] dims)
        {
            var shape = BackendUtil.Row2ColMajor(BackendUtil.Int2Long(dims));

            return(Out(Data.Reorder(In(x), BackendUtil.CastShapeUInt(shape))));
        }