/// <summary>トリミング</summary> public static VariableNode Trimming1D(VariableNode x, int trim) { Function function = new Functions.Connection1D.Trimming(trim); VariableNode y = Apply(function, x)[0]; return(y); }
/// <summary>トリミング</summary> public static Tensor Trimming1D(Tensor x, int trim_left, int trim_right) { Function function = new Functions.Connection1D.Trimming(trim_left, trim_right); Tensor y = new Tensor(function.OutputShapes(x.Shape)[0]); function.Execute(new Tensor[] { x }, new Tensor[] { y }); return(y); }