public function parametric() : Generator
    {
        foreach ($this->hidden as $layer) {
            if ($layer instanceof Parametric) {
                yield $layer;
            }
        }

        if ($this->output instanceof Parametric) {
            yield $this->output;
        }
    }
public function parametric() : Generator
    {
        foreach ($this->hidden as $layer) {
            if ($layer instanceof Parametric) {
                yield $layer;
            }
        }

        if ($this->output instanceof Parametric) {
            yield $this->output;
        }
    }
public function parametric ( ) : Generator { foreach ( $ this -> hidden as $ layer ) { if ( $ layer instanceof Parametric ) { yield $ layer ; } } if ( $ this -> output instanceof Parametric ) { yield $ this -> output ; } }
The parametric layers of the network. i.e. the layers that have weights.

@return \Generator
The parametric layers of the network . i . e . the layers that have weights .