Exemplo n.º 1
0
        /// <summary>1次元最近傍補間</summary>
        /// <remarks>倍率2固定</remarks>
        public static VariableNode NeighborZoom1D(VariableNode x)
        {
            Function function =
                new Functions.Connection1D.NeighborZoom();

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

            return(y);
        }
Exemplo n.º 2
0
        /// <summary>1次元最近傍補間</summary>
        /// <remarks>倍率2固定</remarks>
        public static Tensor NeighborZoom1D(Tensor x)
        {
            Function function =
                new Functions.Connection1D.NeighborZoom();

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

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

            return(y);
        }