mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 13:26:30 +00:00
split to 2 files: tensorrt_engine and onnx engine
This commit is contained in:
@@ -20,3 +20,9 @@ cdef class RemoteCommand:
|
||||
cdef from_msgpack(bytes data):
|
||||
unpacked = msgpack.unpackb(data, strict_map_key=False)
|
||||
return RemoteCommand(unpacked.get("CommandType"), unpacked.get("Data"))
|
||||
|
||||
cdef bytes serialize(self):
|
||||
return msgpack.packb({
|
||||
"CommandType": self.command_type,
|
||||
"Data": self.data
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user