NVIDIA / tensorrt-laboratory

Explore the Capabilities of the TensorRT Platform
https://developer.nvidia.com/tensorrt
BSD 3-Clause "New" or "Revised" License
261 stars 50 forks source link

DeserializeEngine should accept raw bytes #12

Closed ryanolson closed 6 years ago

ryanolson commented 6 years ago

Runtime and ManagedRuntime should have DeserializeEngine methods that take raw bytes.

std::shared_ptr<Model> DeserializeEngine(void *, size_t);

DeserializeEngine(std::string engine_file) should also check for the files existence and return a sensible error if not found.