private Shape NDShape(params long[] shape) { return(new Shape(BackendUtil.CastShapeUInt(shape))); }
public Tensor Transpose(Tensor x, params int[] dims) { var shape = BackendUtil.Row2ColMajor(BackendUtil.Int2Long(dims)); return(Out(Data.Reorder(In(x), BackendUtil.CastShapeUInt(shape)))); }