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

Method delete

tensorflow/python/ops/session_ops.py:102–109  ·  view source on GitHub ↗

Force the deletion of this persistent tensor.

(self)

Source from the content-addressed store, hash-verified

100 return self._session.run(reader, feed_dict={holder: self._handle})
101
102 def delete(self):
103 """Force the deletion of this persistent tensor."""
104 if not self._auto_gc_enabled:
105 raise TypeError("Persistent tensor %s may have already been deleted."
106 % self.handle)
107 self._auto_gc_enabled = False
108 holder, deleter = _get_handle_deleter(self._session.graph, 0, self._handle)
109 self._session.run(deleter, feed_dict={holder: self.handle})
110
111 def get_raw_handle(self):
112 """Return the raw handle of the tensor.

Callers 4

testHandleDeleteMethod · 0.45
repeat_elementsFunction · 0.45
computeMethod · 0.45
saveBitmapMethod · 0.45

Calls 2

_get_handle_deleterFunction · 0.85
runMethod · 0.45

Tested by 1

testHandleDeleteMethod · 0.36