/// <summary>3次元ゼロパディング</summary> public static VariableNode ZeroPadding3D(VariableNode x, int pad) { Function function = new Functions.Connection3D.ZeroPadding(pad); VariableNode y = Apply(function, x)[0]; return(y); }
/// <summary>3次元ゼロパディング</summary> public static VariableNode ZeroPadding3D(VariableNode x, int pad_left, int pad_right, int pad_top, int pad_bottom, int pad_front, int pad_rear) { Function function = new Functions.Connection3D.ZeroPadding(pad_left, pad_right, pad_top, pad_bottom, pad_front, pad_rear); VariableNode y = Apply(function, x)[0]; return(y); }
/// <summary>3次元ゼロパディング</summary> public static Tensor ZeroPadding3D(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.ZeroPadding(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 ZeroPadding3D(Tensor x, int pad) { Function function = new Functions.Connection3D.ZeroPadding(pad); Tensor y = new Tensor(function.OutputShapes(x.Shape)[0]); function.Execute(new Tensor[] { x }, new Tensor[] { y }); return(y); }