I'm trying to do inference with model generated with Keras and saved to onnx format. But I'm getting an error while creating the model. Code was based on provided example
Error
go run -tags='nogpu' main.go
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xcd36ff]
goroutine 1 [running]:
main.main()
/home/idk/golang_onnx/main.go:27 +0x1ff
exit status 2
(base) idk@idk:~
I'm trying to do inference with model generated with Keras and saved to onnx format. But I'm getting an error while creating the model. Code was based on provided example
Error
Code