コード例 #1
0
        /// <summary>ポイントごとの3次元カーネル積</summary>
        public static VariableNode PointwiseKernelProduct3D(VariableNode x, VariableNode y)
        {
            Function function =
                new Functions.Connection3D.PointwiseKernelProduct(x.Shape, y.Shape);

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

            return(w);
        }
コード例 #2
0
        /// <summary>ポイントごとの3次元カーネル積</summary>
        public static Tensor PointwiseKernelProduct3D(Tensor x, Tensor y)
        {
            Functions.Connection3D.PointwiseKernelProduct function =
                new Functions.Connection3D.PointwiseKernelProduct(x.Shape, y.Shape);

            Tensor w = new Tensor(function.OutShape);

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

            return(w);
        }