How to define nested dict function
(This is a shortened cross post of my stackoverflow question).
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
Thanks so much!
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 in the function neural_network to represent a nested dict to keep the model parameters (i.e., a pytree).Thanks so much!
Stack Overflow
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...
