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

Function ParseBoolValue

tensorflow/python/eager/pywrap_tfe_src.cc:240–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240bool ParseBoolValue(const string& key, PyObject* py_value, TF_Status* status,
241 unsigned char* value) {
242 *value = PyObject_IsTrue(py_value);
243 return true;
244}
245
246// The passed in py_value is expected to be an object of the python type
247// dtypes.DType or an int.

Callers 1

SetOpAttrScalarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected