-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
@[1,2,3,4,5].toTensor.toNdArray # OK
@["a","b","c"].toTensor.toNdArray # KO
Error: type mismatch: got <Tensor[system.string]>
but expected one of:
func toUnsafeView[T: KnownSupportsCopyMem](t: Tensor[T];
aligned: static bool = true): ptr UncheckedArray[T]
first type mismatch at position: 1
required type for t: Tensor[toUnsafeView.T]
but expression 't' is of type: Tensor[system.string]
proc toUnsafeView[T](ndArray: NumpyArray[T]): ptr UncheckedArray[T]
first type mismatch at position: 1
required type for ndArray: NumpyArray[toUnsafeView.T]
but expression 't' is of type: Tensor[system.string]
Metadata
Metadata
Assignees
Labels
No labels