I am also trying to test my own Keras/Theano trained models for inference using Tensorrt. I am using the approach which Tensorrt provides for sampleMNISTAPI folder which is to make models without using Caffe.
I made the weightsapi.wts file as required by sampleMNISTAPI , but my inference is not getting correct.
I tried various combinations of how to dump the Keras/Theano tranined weights into the .wts file(row-wise and column-wise of each Convolution and Dense layer weights), but it didn’t worked.
Can you please let me know if you are able to run sampleMNISTAPI example using your own Keras/Theano or Keras/Tensorflow models.?