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

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

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

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

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

            return(y);
        }