google / objax

Apache License 2.0
769 stars 77 forks source link

Give error if passing the wrong type (e.g., a module) to checkpoint save or restore #145

Closed carlini closed 3 years ago

carlini commented 3 years ago

Currently if someone accidentally calls save or restore on a module, things crash with an unhelpful error. This gives a better error.