mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 11:26:31 +00:00
import Tensorrt not in compile time in order to dynamically load tensorrt only if nvidia gpu is present
This commit is contained in:
@@ -16,17 +16,9 @@ cdef class TensorRTEngine(InferenceEngine):
|
||||
|
||||
cdef object stream
|
||||
|
||||
@staticmethod
|
||||
cdef get_gpu_memory_bytes(int device_id)
|
||||
|
||||
@staticmethod
|
||||
cdef get_engine_filename(int device_id)
|
||||
cpdef tuple get_input_shape(self)
|
||||
|
||||
@staticmethod
|
||||
cdef convert_from_onnx(bytes onnx_model)
|
||||
cpdef int get_batch_size(self)
|
||||
|
||||
cdef tuple get_input_shape(self)
|
||||
|
||||
cdef int get_batch_size(self)
|
||||
|
||||
cdef run(self, input_data)
|
||||
cpdef run(self, input_data)
|
||||
|
||||
Reference in New Issue
Block a user