Skip to content

Instantly share code, notes, and snippets.

@Araq
Created February 4, 2019 13:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Araq/7b7974aaade522157abb0bb4b34d7c5a to your computer and use it in GitHub Desktop.
Save Araq/7b7974aaade522157abb0bb4b34d7c5a to your computer and use it in GitHub Desktop.
..\src\tensor\display.nim(27, 27) template/generic instantiation of `disp4d` from here
..\src\tensor\private\p_display.nim(117, 30) Error: type mismatch: got <Tensor[system.string], Tensor[system.string], seq[string], axis: int literal(1)>
but expected one of:
proc concat[T](t_list: varargs[Tensor[T]]; axis: int): Tensor[T]
first type mismatch at position: 1
required type: varargs[Tensor[concat.T]]
but expression 'hbuffer[i]' is of type: Tensor[system.string]
proc concat[T](seqs: varargs[seq[T]]): seq[T]
first type mismatch at position: 1
required type: varargs[seq[T]]
but expression 'hbuffer[i]' is of type: Tensor[system.string]
proc concat[T](dsas: varargs[DynamicStackArray[T]]): DynamicStackArray[T]
first type mismatch at position: 1
required type: varargs[DynamicStackArray[concat.T]]
but expression 'hbuffer[i]' is of type: Tensor[system.string]
expression: concat(hbuffer[i],
reshape(toTensor(repeat(sep, t.shape[2]), 0), [t.shape[2], 1]),
type
outType903374 = typeof(
block:
var it: typeof(items(reshape(s1, [t.shape[2], t.shape[3]])), typeOfIter)
$it, typeOfProc)
var result903378: seq[outType903374] = @[]
for it in items(reshape(s1, [t.shape[2], t.shape[3]])):
add(result903378, $it)
result903378, axis = 1)
Tip: 56 messages have been suppressed, use --verbose to show them.
Error: Execution failed with exit code 1
... Command: "C:\Users\rumpf\projects\nim\bin\nim.exe" c --noNimblePath --path:"C:\Users\rumpf\.nimble\pkgs\nimblas-0.2.1" --path:"C:\Users\rumpf\.nimble\pkgs\nimlapack-0.1.1" --path:"C:\Users\rumpf\.nimble\pkgs\nimcuda-0.1.5" --path:"C:\Users\rumpf\.nimble\pkgs\nimcl-0.1.3" --path:"C:\Users\rumpf\.nimble\pkgs\opencl-1.0" --path:"C:\Users\rumpf\.nimble\pkgs\clblast-0.0.1" --path:"C:\Users\rumpf\.nimble\pkgs\opencl-1.0" --path:"C:\Users\rumpf\.nimble\pkgs\stb_image-2.3" --path:"C:\Users\rumpf\.nimble\pkgs\zip-0.2.1" --path:"C:\Users\rumpf\.nimble\pkgs\untar-0.1.0" "--out:./build/tests_cpu" "--run" "tests/tests_cpu.nim"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment