ocp.tree.serialize_tree
filtering logic for sequences with empty leaves
#1356
Labels
ocp.tree.serialize_tree
filtering logic for sequences with empty leaves
#1356
Hi,
I spotted ocp.tree.serialize_tree but it seems the serialization logic won't work if you have empty leaves within a sequence. This happens quite frequently with optax where you'll end up with optax.EmptyState() within a tuple. Here's a minimal reproduction of this issue:
resulting in:
I'm not sure what the ideal solution here is, I don't have enough context on what's the intended purpose of serialize_tree and deserialize_tree.
The text was updated successfully, but these errors were encountered: