Пример #1
0
        /// <summary>2次元最近傍補間</summary>
        /// <remarks>倍率2固定</remarks>
        public static VariableNode NeighborZoom2D(VariableNode x)
        {
            Function function =
                new Functions.Connection2D.NeighborZoom();

            VariableNode y = Apply(function, x)[0];

            return(y);
        }
Пример #2
0
        /// <summary>2次元最近傍補間</summary>
        /// <remarks>倍率2固定</remarks>
        public static Tensor NeighborZoom2D(Tensor x)
        {
            Function function =
                new Functions.Connection2D.NeighborZoom();

            Tensor y = new Tensor(function.OutputShapes(x.Shape)[0]);

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

            return(y);
        }