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

Method Insert

tensorflow/python/eager/pywrap_tensor_conversion.cc:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void TFE_TensorHandleCache::Insert(PyObject* value, tensorflow::DataType dtype,
57 absl::string_view device_name,
58 TFE_TensorHandle* handle) {
59 Py_INCREF(value);
60 handle->handle->Ref();
61 cache.emplace(Key{PyObjectPtr{value}, dtype, device_name}, handle->handle);
62}
63
64void TFE_TensorHandleCache::Clear() {
65 DecrefUnrefAll();

Callers 1

ConvertToEagerTensorFunction · 0.45

Calls 2

RefMethod · 0.45
emplaceMethod · 0.45

Tested by

no test coverage detected