summaryrefslogtreecommitdiff
path: root/candle-examples/examples/reinforcement-learning/policy_gradient.rs
diff options
context:
space:
mode:
authorLaurent Mazare <laurent.mazare@gmail.com>2024-11-15 16:46:55 +0100
committerGitHub <noreply@github.com>2024-11-15 16:46:55 +0100
commit00d8a0c178f588b6454c02e66b709917628c2bae (patch)
tree218ad1e2c5125d9dd2cb09a7fd3ff3b7ecaa78d0 /candle-examples/examples/reinforcement-learning/policy_gradient.rs
parentf689ce5d39c6f1475dfc71503288ea2905c8f685 (diff)
downloadcandle-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.rs2
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()