I get this error on evaluation:
SetDelayed::write: Tag NetGraph in NetGraph[<|Type->Graph,<<3>>,Edges->
{NeuralNetworks`NetPath[Nodes,1,Inputs,Input]->NeuralNetworks`NetPath[Inputs,Input],
<<31>>,NeuralNetworks`NetPath[Outputs,Output]-
>NeuralNetworks`NetPath[Nodes,22,Outputs,Output]}|>,<|Version->12.3.3,Unstable->False|>]
[hiddenStateDimension_,inputDimension_] is Protected.