axon icon indicating copy to clipboard operation
axon copied to clipboard

Respect input data type in layers when it makes sense

Open seanmor5 opened this issue 3 years ago • 0 comments

There are cases where the input to a model is an integer type, e.g. an attention mask or token IDs. Axon currently does not respect input types, and aggressively casts to compute where necessary. For layers like embeddings, this does not make sense because they require integer inputs anyway

seanmor5 avatar Jun 20 '22 16:06 seanmor5