コード例 #1
0
        /// <summary>転置全結合</summary>
        public static VariableNode TransposeDense(VariableNode x, VariableNode w)
        {
            Function function =
                new Functions.ConnectionDense.TransposeDense(x.Shape, w.Shape);

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

            return(y);
        }
コード例 #2
0
        /// <summary>転置全結合</summary>
        public static Tensor TransposeDense(Tensor x, Tensor w)
        {
            Functions.ConnectionDense.TransposeDense function =
                new Functions.ConnectionDense.TransposeDense(x.Shape, w.Shape);

            Tensor y = new Tensor(function.OutShape);

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

            return(y);
        }