axon icon indicating copy to clipboard operation
axon copied to clipboard

Integrate named tensors

Open seanmor5 opened this issue 3 years ago • 1 comments

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)

seanmor5 avatar Apr 19 '21 11:04 seanmor5

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....

josevalim avatar Apr 19 '21 14:04 josevalim