File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,13 @@ class ConfigDict(dict):
2424
2525 __slots__ = () # we don't need __dict__ on this object at all.
2626
27- def __init__ (self , map : dict , ** kwargs ):
28- super ().__init__ (map , ** kwargs )
27+ def __init__ (self , * args , ** kwargs ):
28+ super ().__init__ (* args , ** kwargs )
2929
3030 # Replace all dictionary keys with values recursively.
31- for key in self :
32- if isinstance (self [ key ] , dict ) and not isinstance (self [ key ] , ConfigDict ):
33- self [key ] = ConfigDict (map = self [ key ] )
31+ for key , val in self . items () :
32+ if isinstance (val , dict ) and not isinstance (val , ConfigDict ):
33+ self [key ] = ConfigDict (val )
3434
3535 def __missing__ (self , key ):
3636 msg = f"Accessed configuration key/section { key } which has not been defined. "
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ latent_dim =64
6464[data_set ]
6565# Name of the built-in data loader to use or the libpath to an external data loader
6666# e.g. "user_package.submodule.ExternalDataLoader" or "HSCDataLoader"
67- name = " HSCDataLoader "
67+ name = " CifarDataSet "
6868
6969[data_loader ]
7070# Pixel dimensions used to crop all images prior to loading. Will prune any images that are too small.
You can’t perform that action at this time.
0 commit comments