preserve size for param(::AbstractArray)
Open
- Dominant language
- Julia
- Stars
- 54
- Forks
- 37
- Avg merge
- 5h 49m
- Merged PRs (30d)
- 1
Description
According to https://fluxml.ai/Flux.jl/stable/performance/#Don't-use-more-precision-than-you-need.-1 we should use as small types as possible.
Implementing
```
param(xs::AbstractArray) = TrackedArray(float.(xs))
```
seems somewhat counterintuitive as it tries to convert to Float64. Thus, if I restricted my own DataTypes to Float32 already this will just widen it again. Specialcasing for smaller float types might be a good idea here?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.