MCPcopy Create free account
hub / github.com/tensorpack/tensorpack / get_collection_in_tower

Method get_collection_in_tower

tensorpack/tfutils/tower.py:80–88  ·  view source on GitHub ↗

From a collection, get items that are __added__ to the collection in this tower. Note that it works by tracking the collection at the beginning and end of the tower function. Therefore it does not guarantee that the items are __created__ in this tower.

(self, key)

Source from the content-addressed store, hash-verified

78 return self._name
79
80 def get_collection_in_tower(self, key):
81 """
82 From a collection, get items that are __added__ to the collection in this tower.
83
84 Note that it works by tracking the collection at the beginning and end of
85 the tower function.
86 Therefore it does not guarantee that the items are __created__ in this tower.
87 """
88 return self._collection_guard.get_collection_in_tower(key)
89
90 @call_only_once
91 def _get_scopes(self):

Callers 6

regularize_costFunction · 0.45
__exit__Method · 0.45
get_collectionMethod · 0.45
get_grad_fnMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected