/// <summary>
        /// Добавление НОВОГО слоя в НС
        /// </summary>
        /// <param name="inpShape">Размерность тензора входа</param>
        /// <param name="layer">Слой</param>
        public void AddNewLayer(Shape inpShape, ILayer layer)
        {
            OutputShape = layer.OutputShape;
            layer.Generate(inpShape, random, std);
            Layers.Add(layer);

            if (Layers.Count == 1)
            {
                InputShape = inpShape;
            }
        }
        /// <summary>
        /// Добавление НОВОГО слоя в НС
        /// </summary>
        /// <param name="layer">Слой</param>
        public void AddNewLayer(ILayer layer)
        {
            OutputShape = layer.OutputShape;
            var shape = Layers[Layers.Count - 1].OutputShape;

            layer.Generate(shape, random, std);
            Layers.Add(layer);

            if (Layers.Count == 1)
            {
                InputShape = Layers[0].InputShape;
            }
        }