value = $value; } /** * Initialize a weight matrix W in the dimensions fan in x fan out. * * @internal * * @param int<0,max> $fanIn * @param int<0,max> $fanOut * @return Matrix */ public function initialize(int $fanIn, int $fanOut) : Matrix { return Matrix::fill($this->value, $fanOut, $fanIn); } /** * Return the string representation of the object. * * @internal * * @return string */ public function __toString() : string { return "Constant (value: {$this->value})"; } }