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

Method clear_collection

tensorflow/python/framework/ops.py:3992–4002  ·  view source on GitHub ↗

Clears all values in a collection. Args: name: The key for the collection. The `GraphKeys` class contains many standard names for collections.

(self, name)

Source from the content-addressed store, hash-verified

3990 return [x for x in self._collections if isinstance(x, six.string_types)]
3991
3992 def clear_collection(self, name):
3993 """Clears all values in a collection.
3994
3995 Args:
3996 name: The key for the collection. The `GraphKeys` class contains many
3997 standard names for collections.
3998 """
3999 self._check_not_finalized()
4000 with self._lock:
4001 if name in self._collections:
4002 del self._collections[name]
4003
4004 def get_variale_by_name(self, name):
4005 """

Callers 2

export_scoped_meta_graphFunction · 0.80

Calls 1

_check_not_finalizedMethod · 0.95

Tested by

no test coverage detected