Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

engineRT is NULL after deserializing #28

Closed
sctrueew opened this issue Jun 3, 2020 · 12 comments
Closed

engineRT is NULL after deserializing #28

sctrueew opened this issue Jun 3, 2020 · 12 comments

Comments

@sctrueew
Copy link

sctrueew commented Jun 3, 2020

Hi,

I compiled it on Windows and when I have serialized the model successfully but when it wants to deserialize the engineRT is null. Where is the problem?

Thanks

@sctrueew sctrueew changed the title engineRT is NULL after deserialize engineRT is NULL after deserializing Jun 4, 2020
@ceccocats
Copy link
Owner

ceccocats commented Jun 4, 2020

What mode are you using? FP 32, 16 or int8?
Please activate the debug mode to see if there are some problems:

cmake .. -DDEBUG=True
make

Consider that we do not use Windows, all the software is tested on Ubuntu 18

@sctrueew
Copy link
Author

sctrueew commented Jun 5, 2020

@ceccocats Hi,

I'm using FP 32 and Tensor rt v7, the serialization is worked perfectly but when I want to run with .rt I get the error

@ceccocats
Copy link
Owner

I need more info, does it print something with debug active? Can you paste the output? Does it create the .rt file?

@oessam
Copy link

oessam commented Jun 7, 2020

@zpmmehrdad Hello,
Could you please post any porting hints to compile it on windows ?

Thank you

@oessam
Copy link

oessam commented Jun 7, 2020

@zpmmehrdad What shall be the configuration type ( Application .exe, static lib, dll ) ?

@sctrueew
Copy link
Author

sctrueew commented Jun 7, 2020

@zpmmehrdad What shall be the configuration type ( Application .exe, static lib, dll ) ?

@oessam Hi,

I have added the files to my project and compile it. I could test it successfully but when after that use the *.rt files I get an error.

@oessam
Copy link

oessam commented Jun 7, 2020

@zpmmehrdad didnt you use cmake to generate a project ? or how was your project ready to be compiled ?

@sctrueew
Copy link
Author

sctrueew commented Jun 7, 2020

@zpmmehrdad didnt you use cmake to generate a project?

Yes exactly, I didn't use CMake

@ceccocats
Copy link
Owner

If you can, use cmake... Cmake is love, cmake is life

@sctrueew
Copy link
Author

sctrueew commented Jun 8, 2020

@ceccocats Hi,

I don't think my problem is CMake

@JoeCool90
Copy link

I'm guessing it was the binary file problem. Make sure both the serialising and deserialising is done on a file that has been opened in binary mode.

@dsgh2
Copy link

dsgh2 commented Sep 22, 2020

How did you build on Windows? Please let me know how to build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants