ACEsuit / Polynomials4ML.jl

Polynomials for ML: fast evaluation, batching, differentiation
MIT License
12 stars 5 forks source link

Fix output type for LinearLayer #70

Closed cortner closed 11 months ago

cortner commented 11 months ago

LinearLayer previously used only the input vector to determine the output type, but it should use both the input vector and the type of the weight vector.

cortner commented 11 months ago

This closes #69

cortner commented 11 months ago

as a general rule, look at the combination of all types involved and use that to compute the output type. That's what promote_type is for.