Tuple hyperparameter

Hey,

I am wondering how one is supposed to handle tuple or list-like hyperparameters. I am not confident that the system was built to support it (which makes sense, but I am trying to hack through the checkpointing system). Specifically, when using

self.save_hyperparameters("tuple_parameter")

The yaml file later created will be invalid and hold something like

tuple_parameter: !!python/tuple
- foo
- bar
-...

which cannot be read when loading from checkpoint. Anyone know how to get around that without having to manually save to the yaml the tuple parameter? Thanks!

My bad, it actually works as intended, loading such parameter with the checkpoint loading function works as intended. This can thus be ignored.

1 Like