Example #1
0
        /// <summary>2次元バイリニア補間</summary>
        /// <remarks>倍率2固定</remarks>
        public static VariableNode BilinearZoom2D(VariableNode x)
        {
            Function function =
                new Functions.Connection2D.BilinearZoom();

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

            return(y);
        }
Example #2
0
        /// <summary>2次元バイリニア補間</summary>
        /// <remarks>倍率2固定</remarks>
        public static Tensor BilinearZoom2D(Tensor x)
        {
            Function function =
                new Functions.Connection2D.BilinearZoom();

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

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

            return(y);
        }