コード例 #1
0
        /// <summary>トリミング</summary>
        public static Tensor Trimming3D(Tensor x, int trim_left, int trim_right, int trim_top, int trim_bottom, int trim_front, int trim_rear)
        {
            Function function =
                new Functions.Connection3D.Trimming(trim_left, trim_right, trim_top, trim_bottom, trim_front, trim_rear);

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

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

            return(y);
        }
コード例 #2
0
        /// <summary>トリミング</summary>
        public static Tensor Trimming3D(Tensor x, int trim)
        {
            Function function =
                new Functions.Connection3D.Trimming(trim);

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

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

            return(y);
        }