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.