示例#1
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))));
        }
示例#2
0
 public long[] GetShape(SiaTensor x)
 {
     return BackendUtil.Int2Long(In(x).getShape().Dimensions);
 }