We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4ad5da commit 9c9d52fCopy full SHA for 9c9d52f
onnx_diagnostic/torch_models/hghub/model_inputs.py
@@ -228,6 +228,8 @@ def get_untrained_model_with_inputs(
228
f"and use_pretrained=True."
229
)
230
231
+ seed = int(os.environ.get("SEED", "17"))
232
+ torch.manual_seed(seed)
233
try:
234
if type(config) is dict:
235
model = cls_model(**config)
@@ -239,6 +241,8 @@ def get_untrained_model_with_inputs(
239
241
) from e
240
242
243
# input kwargs
244
+ seed = int(os.environ.get("SEED", "17")) + 1
245
246
kwargs, fct = random_input_kwargs(config, task) # type: ignore[arg-type]
247
if verbose:
248
print(f"[get_untrained_model_with_inputs] use fct={fct}")
0 commit comments