mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 19:36:30 +00:00
remove cpdef, add constants h
This commit is contained in:
@@ -15,12 +15,12 @@ cdef class OnnxEngine(InferenceEngine):
|
||||
model_meta = self.session.get_modelmeta()
|
||||
constants_inf.log(f"Metadata: {model_meta.custom_metadata_map}")
|
||||
|
||||
cpdef tuple get_input_shape(self):
|
||||
cdef tuple get_input_shape(self):
|
||||
shape = self.input_shape
|
||||
return shape[2], shape[3]
|
||||
|
||||
cpdef int get_batch_size(self):
|
||||
cdef int get_batch_size(self):
|
||||
return self.batch_size
|
||||
|
||||
cpdef run(self, input_data):
|
||||
cdef run(self, input_data):
|
||||
return self.session.run(None, {self.input_name: input_data})
|
||||
Reference in New Issue
Block a user