How do I define a function in Mojo where the argument or return value is a nested structure, like a dictionary. But where the exact structure is not known at compile time because, for example, it is read from disk.
For example, how do I type annotate
params
params
in the function
neural_network
neural_network
to represent a nested dict to keep the model parameters (i.e., a pytree).
How do I define a function in Mojo where the argument is a nested structure, like a dictionary. But where the exact structure is not known at compile time because, for example, it is read from disk...