notice

This is documentation for Rasa Documentation v2.x, which is no longer actively maintained.
For up-to-date documentation, see the latest version (3.x).

Version: 2.x

rasa.utils.tensorflow.numpy

values_to_numpy

values_to_numpy(data: Optional[Dict[Any, Any]]) -> Optional[Dict[Any, Any]]

Replaces all tensorflow-tensor values with their numpy versions.

Arguments:

  • data - Any dictionary for which values should be converted.

Returns:

A dictionary identical to data except that tensor values are replaced by their corresponding numpy arrays.