Clears all values in a collection. Args: name: The key for the collection. The `GraphKeys` class contains many standard names for collections.
(self, name)
| 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 | """ |
no test coverage detected