MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / set

Method set

python/paddle/utils/environments.py:55–57  ·  view source on GitHub ↗
(self, value: T)

Source from the content-addressed store, hash-verified

53 return self._cached_value
54
55 def set(self, value: T) -> None:
56 os.environ[self.name] = self.convert_to_string(value)
57 self._cached_value = value
58
59 def parse_from_string(self) -> T:
60 raise NotImplementedError

Callers 15

_to_LodTensorFunction · 0.45
_lod_tensor2varbaseFunction · 0.45
set_valueFunction · 0.45
__init__Method · 0.45
__exit__Method · 0.45
set_varFunction · 0.45
set_program_stateFunction · 0.45
set_varFunction · 0.45
set_variable_dataFunction · 0.45
_init_var_nodeFunction · 0.45
_restore_varMethod · 0.45
_store_varMethod · 0.45

Calls 1

convert_to_stringMethod · 0.95

Tested by

no test coverage detected