Calling tensorRT's go interface implementation
go get github.com/murInJ/go-tensor
Please refer to Impl_test.go for usage details.
Overall you just need to call the API in tensorrt.go and interact with the interface via TensorrtContext to realize the functionality.