MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _convert_to_numpy_obj

Function _convert_to_numpy_obj

tensorflow/python/client/session.py:144–146  ·  view source on GitHub ↗

Explicitly convert obj based on numpy type except for string type.

(numpy_dtype, obj)

Source from the content-addressed store, hash-verified

142
143
144def _convert_to_numpy_obj(numpy_dtype, obj):
145 """Explicitly convert obj based on numpy type except for string type."""
146 return numpy_dtype(obj) if numpy_dtype is not object else str(obj)
147
148
149def register_session_run_conversion_functions(

Callers 1

_runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected