notice

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

Version: 2.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.