Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tf_agents.specs.array_spec.check_arrays_nest

View source on GitHub

Check that the arrays conform to the spec.

tf_agents.specs.array_spec.check_arrays_nest(
    arrays, spec
)

Args:

  • arrays: A NumPy array, or a nested dict, list or tuple of arrays.
  • spec: An ArraySpec, or a nested dict, list or tuple of ArraySpecs.

Returns:

True if the arrays conforms to the spec, False otherwise.