-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
import tables, sequtils
const DtypeOrderMap* = {
"Value" : 1,
"Tensor[Value]" : 2,
"Tensor[T]" : 3,
"T" : 4,
"Tensor[string]" : 5,
"string" : 6,
"Tensor[int]" : 7,
"int" : 8,
"Tensor[int64]" : 9,
"int64" : 10,
"Tensor[float]" : 11,
"float" : 12,
"Tensor[float64]" : 13,
"float64" : 14,
"Tensor[bool]" : 15,
"bool" : 16 # if something can be done with `bool`, take that
}.toTable()
echo DtypeOrderMap
const DtypeOrderMapKeys = toSeq(DtypeOrderMap.keys())
Ref #19403
Using koch boot --gc:orc
C:\Users\blue\Downloads\Nim\lib\pure\collections\tableimpl.nim(168, 11) Error: cannot create null element for:
Traceback (most recent call last)
C:\Users\blue\Downloads\Nim\compiler\nim.nim(138) nim
C:\Users\blue\Downloads\Nim\compiler\nim.nim(94) handleCmdLine
C:\Users\blue\Downloads\Nim\compiler\main.nim(275) mainCommand
C:\Users\blue\Downloads\Nim\compiler\main.nim(245) compileToBackend
C:\Users\blue\Downloads\Nim\compiler\main.nim(101) commandCompileToC
C:\Users\blue\Downloads\Nim\compiler\modules.nim(178) compileProject
C:\Users\blue\Downloads\Nim\compiler\modules.nim(98) compileModule
C:\Users\blue\Downloads\Nim\compiler\passes.nim(180) processModule
C:\Users\blue\Downloads\Nim\compiler\passes.nim(73) processTopLevelStmt
C:\Users\blue\Downloads\Nim\compiler\sem.nim(653) myProcess
C:\Users\blue\Downloads\Nim\compiler\sem.nim(621) semStmtAndGenerateGenerics
C:\Users\blue\Downloads\Nim\compiler\semstmts.nim(2371) semStmt
C:\Users\blue\Downloads\Nim\compiler\semexprs.nim(1066) semExprNoType
C:\Users\blue\Downloads\Nim\compiler\semexprs.nim(3002) semExpr
C:\Users\blue\Downloads\Nim\compiler\semstmts.nim(2313) semStmtList
C:\Users\blue\Downloads\Nim\compiler\semexprs.nim(3006) semExpr
C:\Users\blue\Downloads\Nim\compiler\semstmts.nim(698) semConst
C:\Users\blue\Downloads\Nim\compiler\sem.nim(378) semConstExpr
C:\Users\blue\Downloads\Nim\compiler\vm.nim(2227) evalConstExpr
C:\Users\blue\Downloads\Nim\compiler\vm.nim(2222) evalConstExprAux
C:\Users\blue\Downloads\Nim\compiler\vm.nim(1391) rawExecute
C:\Users\blue\Downloads\Nim\compiler\vmgen.nim(1850) getNullValue
C:\Users\blue\Downloads\Nim\compiler\vmgen.nim(1857) getNullValue
C:\Users\blue\Downloads\Nim\compiler\msgs.nim(561) liMessage
C:\Users\blue\Downloads\Nim\compiler\msgs.nim(421) handleError
C:\Users\blue\Downloads\Nim\compiler\msgs.nim(402) quit
Another crash:
import tables, sequtils
const DtypeOrderMap* = {
"Value" : 1,
"Tensor[Value]" : 2,
"Tensor[T]" : 3,
"T" : 4,
"Tensor[string]" : 5,
"string" : 6,
"Tensor[int]" : 7,
"int" : 8,
"Tensor[int64]" : 9,
"int64" : 10,
"Tensor[float]" : 11,
"float" : 12,
"Tensor[float64]" : 13,
"float64" : 14,
"Tensor[bool]" : 15,
"bool" : 16 # if something can be done with `bool`, take that
}.toTable()
const DtypeOrderMapKeys = toSeq(DtypeOrderMap.keys())C:\Users\blue\Downloads\Nim\compiler\nim.nim(138) nim
C:\Users\blue\Downloads\Nim\compiler\nim.nim(94) handleCmdLine
C:\Users\blue\Downloads\Nim\compiler\main.nim(275) mainCommand
C:\Users\blue\Downloads\Nim\compiler\main.nim(245) compileToBackend
C:\Users\blue\Downloads\Nim\compiler\main.nim(101) commandCompileToC
C:\Users\blue\Downloads\Nim\compiler\modules.nim(178) compileProject
C:\Users\blue\Downloads\Nim\compiler\modules.nim(98) compileModule
C:\Users\blue\Downloads\Nim\compiler\passes.nim(180) processModule
C:\Users\blue\Downloads\Nim\compiler\passes.nim(73) processTopLevelStmt
C:\Users\blue\Downloads\Nim\compiler\sem.nim(653) myProcess
C:\Users\blue\Downloads\Nim\compiler\sem.nim(621) semStmtAndGenerateGenerics
C:\Users\blue\Downloads\Nim\compiler\semstmts.nim(2371) semStmt
C:\Users\blue\Downloads\Nim\compiler\semexprs.nim(1066) semExprNoType
C:\Users\blue\Downloads\Nim\compiler\semexprs.nim(3002) semExpr
C:\Users\blue\Downloads\Nim\compiler\semstmts.nim(2313) semStmtList
C:\Users\blue\Downloads\Nim\compiler\semexprs.nim(3006) semExpr
C:\Users\blue\Downloads\Nim\compiler\semstmts.nim(698) semConst
C:\Users\blue\Downloads\Nim\compiler\sem.nim(378) semConstExpr
C:\Users\blue\Downloads\Nim\compiler\vm.nim(2226) evalConstExpr
C:\Users\blue\Downloads\Nim\compiler\vm.nim(2221) evalConstExprAux
C:\Users\blue\Downloads\Nim\compiler\vm.nim(1390) rawExecute
C:\Users\blue\Downloads\Nim\compiler\vmgen.nim(1848) getNullValue
C:\Users\blue\Downloads\Nim\compiler\ast.nim(1281) newNodeIT
C:\Users\blue\Downloads\Nim\compiler\ast.nim(1245) newNode
C:\Users\blue\Downloads\Nim\lib\system\arc.nim(86) nimNewObj
C:\Users\blue\Downloads\Nim\lib\system\alloc.nim(960) alloc0
SIGSEGV: Illegal storage access. (Attempt to read from nil?)