Пример #1
0
        /// <summary>軸反転</summary>
        public static Tensor Flip(Tensor x, int axis)
        {
            Function function = new Functions.ArrayManipulation.Flip(axis);

            Tensor y = new Tensor(x.Shape);

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

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

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