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

Method add

torch/utils/hipify/hipify_python.py:671–676  ·  view source on GitHub ↗
(self, word)

Source from the content-addressed store, hash-verified

669 self.data = {}
670
671 def add(self, word):
672 ref = self.data
673 for char in word:
674 ref[char] = char in ref and ref[char] or {}
675 ref = ref[char]
676 ref[''] = 1
677
678 def dump(self):
679 return self.data

Callers 15

write_storageMethod · 0.45
CUDAExtensionFunction · 0.45
_jit_compileFunction · 0.45
get_cudnn_versionFunction · 0.45
_make_unique_nameFunction · 0.45
_compute_in_outFunction · 0.45
_operators_to_graph_defFunction · 0.45
apply_random_seedFunction · 0.45
reduce_hookFunction · 0.45
_traverse_helperFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected