コード例 #1
0
        /// <summary>結合</summary>
        public static Tensor Concat(int axis, params Tensor[] xs)
        {
            Function function = new Functions.ArrayManipulation.Concat(xs.Length, axis);

            Tensor y = new Tensor(function.OutputShapes(xs.Select((tensor) => tensor.Shape).ToArray())[0]);

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

            return(y);
        }
コード例 #2
0
        /// <summary>結合</summary>
        public static VariableNode Concat(int axis, params VariableNode[] xs)
        {
            Function function = new Functions.ArrayManipulation.Concat(xs.Length, axis);

            return(Apply(function, xs)[0]);
        }