World Age Issues with TensorCast JuliaPy
- Vorherrschende Sprache
- Julia
- Sterne
- 1.5k
- Forks
- 186
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
I am getting a world age bug when running TensorCast in JuliaPy, but not when using it normally.
If I run an example function such as
```
function testfunc()
V = [10,20,30]
M = collect(reshape(1:12, 3,4))
@cast A[j,i] := M[i,j] + 10 * V[i]
return A
end
```
it works when I call it in Julia via
```
A = testfunc()
```
However, when I run the Python script
```
from julia.api import Julia
jl = Julia(compiled_modules=False)
from julia import Main
Main.include("testfunction.jl")
from julia.Main import testfunc
A = testfunc()
```
I get the error
```
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Reproduce the difference between the Julia call and the Python script that includes testfunction.jl, focusing on the @cast call and the _trex error reported from TransmuteDims.jl:372. Trace how the Python-to-Julia invocation creates the world-age context; done means identifying a reliable resolution and confirming that testfunc() works through the Python API.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- julia, python
- Bereich
- api
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100