Пример #1
0
        /// <summary>ソート</summary>
        public static Tensor Sort(Tensor x, int axis)
        {
            Function function = new Functions.ArrayManipulation.Sort(axis);

            Tensor y = new Tensor(x.Shape);

            function.Execute(new Tensor[] { x }, new Tensor[] { y });

            return(y);
        }
Пример #2
0
        /// <summary>ソート</summary>
        public static VariableNode Sort(VariableNode x, int axis)
        {
            Function function = new Functions.ArrayManipulation.Sort(axis);

            return(Apply(function, x)[0]);
        }