View source on GitHub |
Runtime batch dims of tensor's batch dimension dim
.
tf_agents.utils.nest_utils.get_outer_shape(
nested_tensor, spec
)
Args | |
---|---|
nested_tensor
|
Nest of tensors. |
spec
|
The nested spec. |
Returns | |
---|---|
A Tensor containing the outer shape.
|
Raises | |
---|---|
ValueError
|
If nested_tensor and spec have different structures.
|
TypeError
|
If nested_tensor and spec structures have differing types.
|