/// <summary>分離</summary> public static Tensor[] Separate(Tensor x, int axis, int[] lengths) { Function function = new Functions.ArrayManipulation.Separate(axis, lengths); Tensor[] ys = function.OutputShapes(x.Shape).Select((shape) => new Tensor(shape)).ToArray(); function.Execute(new Tensor[] { x }, ys); return(ys); }
/// <summary>分離</summary> public static VariableNode[] Separate(VariableNode x, int axis, int[] lengths) { Function function = new Functions.ArrayManipulation.Separate(axis, lengths); return(Apply(function, x)); }