View source on GitHub |
Updates dtypes of all specs in the input spec.
tf_agents.specs.tensor_spec.with_dtype(
specs, dtype
)
Args | |
---|---|
specs
|
Nested list/tuple/dict of TensorSpecs/ArraySpecs, describing the shape of tensors. |
dtype
|
dtype to update the specs to. |
Returns | |
---|---|
Nested TensorSpecs with the udpated dtype. |