public Tensor Transpose(Tensor x, params int[] dims) { var shape = BackendUtil.Row2ColMajor(BackendUtil.Int2Long(dims)); return(Out(Data.Reorder(In(x), BackendUtil.CastShapeUInt(shape)))); }
public long[] GetShape(SiaTensor x) { return BackendUtil.Int2Long(In(x).getShape().Dimensions); }