axon
axon copied to clipboard
Integrate named tensors
On the high-level API, we can integrate named tensors by specifying the expected names on input:
Axon.input(batch: nil, channels: 3, height: 224, width: 224)
Then we'll need to consider how these are transformed through the network. For other layers, we could consider adding an option to specify output features as keywords:
Axon.input(batch: nil, pixels: 784)
|> Axon.dense(features: 128, activation: :relu)
|> Axon.dense(label: 10, activation: :softmax)
I am not sure I like the mixing of keyword lists vs tuples - in a way I would prefer a separate :names
option, as in Nx, but maybe we should be allowing keyword lists in Nx too....