Unverified Commit b9a87a52 authored by ian-cannon's avatar ian-cannon Committed by GitHub
Browse files

Update agent.py (#8722)

Update agent.py according to changes noted https://github.com/tensorflow/models/issues/7719
parent ff5bd712
......@@ -149,7 +149,7 @@ class UvfAgentCore(object):
error = tf.square(actions - pred_actions)
spec_range = (self._action_spec.maximum - self._action_spec.minimum) / 2
normalized_error = error / tf.constant(spec_range) ** 2
normalized_error = tf.cast(error, tf.float64) / tf.constant(spec_range) ** 2
return -normalized_error
@gin.configurable('uvf_add_noise_fn')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment