EnzymeAD / EnzymeAD/Reactant.jl
Hit LARGE_CONSTANT_THRESHOLD
- Dominant language
- Julia
- Stars
- 370
- Forks
- 74
- Avg merge
- 18h 47m
- Merged PRs (30d)
- 30
Description
I am doing large tensor contractions using `Tenet`+`Reactant`. I run into the following error
```bash
ERROR: LoadError: Generating a constant of 128000000 bytes, which larger than the 104857600 bytes threshold
```
which is triggered by line 94 of `Ops.jl` in Reactant package
https://github.com/EnzymeAD/Reactant.jl/blob/ac4082abb5fb4e886a9f347213179eb0496b5eb1/src/Ops.jl#L94
`LARGE_CONSTANT_THRESHOLD` is hard-coded in `Ops.jl`, line 38.
https://github.com/EnzymeAD/Reactant.jl/blob/ac4082abb5fb4e886a9f347213179eb0496b5eb1/src/Ops.jl#L38
I am wondering what's the reason to limit `LARGE_CONSTANT_THRESHOLD` to 100 MiB?
Is it safe to raise such limit by hand? e.g. 100 << 21
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.