mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 09:46:30 +00:00
e21dd7e70f
fixes definitions can run until API call
15 lines
312 B
Cython
15 lines
312 B
Cython
cdef enum ProcessorType:
|
|
SOCKET = 1,
|
|
RABBIT = 2
|
|
|
|
cdef enum CommandType:
|
|
INFERENCE = 1
|
|
LOAD = 2
|
|
|
|
cdef class FileCommand:
|
|
cdef CommandType command_type
|
|
cdef ProcessorType processor_type
|
|
cdef str filename
|
|
|
|
@staticmethod
|
|
cdef from_msgpack(bytes data, ProcessorType processor_type) |