MCPcopy Create free account
hub / github.com/pytorch/pytorch / values

Method values

torch/utils/weak.py:232–236  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

230 __iter__ = keys
231
232 def values(self):
233 with _IterationGuard(self):
234 for wr, value in self.data.items():
235 if wr() is not None:
236 yield value
237
238 def keyrefs(self):
239 """Return a list of weak references to the keys.

Callers 15

get_total_flopsMethod · 0.45
process_modMethod · 0.45
_dict_flattenFunction · 0.45
_ordereddict_flattenFunction · 0.45
arg_tree_leavesFunction · 0.45
_add_compile_flagMethod · 0.45
flushMethod · 0.45
closeMethod · 0.45
to_protoMethod · 0.45
getTensorMemoryByDeviceFunction · 0.45
hierarchical_pickleFunction · 0.45

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected