utils
set_seed
set_seed (seed)
CfgNode
CfgNode (**kwargs)
a lightweight configuration class inspired by yacs
CfgNode.to_dict
CfgNode.to_dict ()
return a dict representation of the config
CfgNode.merge_from_dict
CfgNode.merge_from_dict (d)
CfgNode.merge_from_args
CfgNode.merge_from_args (args)
update the configuration from a list of strings that is expected to come from the command line, i.e. sys.argv[1:].
The arguments are expected to be in the form of --arg=value
, and the arg can use . to denote nested sub-attributes. Example:
–model.n_layer=10 –trainer.batch_size=32