Attend the Women in ML Symposium on December 7 Register now

tf_agents.utils.common.scale_to_spec

Stay organized with collections Save and categorize content based on your preferences.

Shapes and scales a batch into the given spec bounds.

Used in the notebooks

Used in the tutorials

tensor A [batch x n] tensor with values in the range of [-1, 1].
spec (BoundedTensorSpec) to use for scaling the action.

A batch scaled the given spec bounds.