Exemple #1
0
        /// <summary>3次元ベクトル転置全結合</summary>
        public static VariableNode TrivectorTransposeDense(VariableNode x, VariableNode w, bool gradmode = false)
        {
            Function function =
                new Functions.TrivectorConvolution.TrivectorTransposeDense(x.Shape, w.Shape, gradmode);

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

            return(y);
        }
Exemple #2
0
        /// <summary>3次元ベクトル転置全結合</summary>
        public static Tensor TrivectorTransposeDense(Tensor x, Tensor w, bool gradmode = false)
        {
            Functions.TrivectorConvolution.TrivectorTransposeDense function =
                new Functions.TrivectorConvolution.TrivectorTransposeDense(x.Shape, w.Shape, gradmode);

            Tensor y = new Tensor(function.OutShape);

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

            return(y);
        }