public function warm(Parameter $param) : void
    {
        $velocity = get_class($param->w())::zeros(...$param->w()->shape());
        $g2 = clone $velocity;

        $this->cache[$param->id()] = [$velocity, $g2];
    }
public function warm(Parameter $param) : void
    {
        $velocity = get_class($param->w())::zeros(...$param->w()->shape());
        $g2 = clone $velocity;

        $this->cache[$param->id()] = [$velocity, $g2];
    }
public function warm ( Parameter $ param ) : void { $ velocity = get_class ( $ param -> w ( ) ) :: zeros ( ... $ param -> w ( ) -> shape ( ) ) ; $ g2 = clone $ velocity ; $ this -> cache [ $ param -> id ( ) ] = [ $ velocity , $ g2 ] ; }
Warm the cache with a parameter.

@param \Rubix\ML\NeuralNet\Parameters\Parameter $param
Warm the cache with a parameter .