Open Vulwsztyn opened 3 years ago
if pruning_strategy: pruning_hparams = ... if defaults and defaults.pruning_hparams.pruning_strategy == pruning_strategy: def_ph = defaults.pruning_hparams else: def_ph = None pruning_hparams = ... pruning_hparams.add_args(parser, defaults=def_ph if defaults else None)
this piece of code allowed def_ph not to be defined in the last line
def_ph
this piece of code allowed
def_ph
not to be defined in the last line