diff options
author | Laurent Mazare <laurent.mazare@gmail.com> | 2024-11-15 16:46:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-15 16:46:55 +0100 |
commit | 00d8a0c178f588b6454c02e66b709917628c2bae (patch) | |
tree | 218ad1e2c5125d9dd2cb09a7fd3ff3b7ecaa78d0 /candle-examples/examples/reinforcement-learning/policy_gradient.rs | |
parent | f689ce5d39c6f1475dfc71503288ea2905c8f685 (diff) | |
download | candle-00d8a0c178f588b6454c02e66b709917628c2bae.tar.gz candle-00d8a0c178f588b6454c02e66b709917628c2bae.tar.bz2 candle-00d8a0c178f588b6454c02e66b709917628c2bae.zip |
Remove some unused macros. (#2618)
* Remove some unused macros.
* More unused fixes.
Diffstat (limited to 'candle-examples/examples/reinforcement-learning/policy_gradient.rs')
-rw-r--r-- | candle-examples/examples/reinforcement-learning/policy_gradient.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/candle-examples/examples/reinforcement-learning/policy_gradient.rs b/candle-examples/examples/reinforcement-learning/policy_gradient.rs index 6c355fe6..3ae2617d 100644 --- a/candle-examples/examples/reinforcement-learning/policy_gradient.rs +++ b/candle-examples/examples/reinforcement-learning/policy_gradient.rs @@ -14,7 +14,7 @@ fn new_model( ) -> Result<(impl Module, VarMap)> { let input_size = input_shape.iter().product(); - let mut varmap = VarMap::new(); + let varmap = VarMap::new(); let var_builder = VarBuilder::from_varmap(&varmap, dtype, device); let model = seq() |