World Age Issues with TensorCast JuliaPy
- Lingua principale
- Julia
- Stelle
- 1.5k
- Fork
- 186
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- julia, python
- Ambito
- api
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100