/// <summary>3次元エッジパディング</summary> public static Tensor EdgePadding3D(Tensor x, int pad_left, int pad_right, int pad_top, int pad_bottom, int pad_front, int pad_rear) { Function function = new Functions.Connection3D.EdgePadding(pad_left, pad_right, pad_top, pad_bottom, pad_front, pad_rear); Tensor y = new Tensor(function.OutputShapes(x.Shape)[0]); function.Execute(new Tensor[] { x }, new Tensor[] { y }); return(y); }
/// <summary>3次元エッジパディング</summary> public static Tensor EdgePadding3D(Tensor x, int pad) { Function function = new Functions.Connection3D.EdgePadding(pad); Tensor y = new Tensor(function.OutputShapes(x.Shape)[0]); function.Execute(new Tensor[] { x }, new Tensor[] { y }); return(y); }