Esempio n. 1
0
        /// <summary>チャネル次元を空間方向に展開</summary>
        public static VariableNode ChannelToSpace1D(VariableNode x, int scale)
        {
            Function function =
                new Functions.Connection1D.ChannelToSpace(scale);

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

            return(y);
        }
Esempio n. 2
0
        /// <summary>チャネル次元を空間方向に展開</summary>
        public static Tensor ChannelToSpace1D(Tensor x, int scale)
        {
            Function function =
                new Functions.Connection1D.ChannelToSpace(scale);

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

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

            return(y);
        }