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

Method __init__

python/paddle/utils/environments.py:146–149  ·  view source on GitHub ↗
(self, variable: EnvironmentVariable[T], value: T)

Source from the content-addressed store, hash-verified

144 original_value: T
145
146 def __init__(self, variable: EnvironmentVariable[T], value: T):
147 self.variable = variable
148 self.original_value = variable.get()
149 self.variable.set(value)
150
151 def __enter__(self) -> Self:
152 return self

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected