mirror of
https://github.com/azaion/annotations.git
synced 2026-04-23 00:56:30 +00:00
13 lines
333 B
Cython
13 lines
333 B
Cython
cdef class SecureModelLoader:
|
|
cdef:
|
|
bytes _model_bytes
|
|
str _ramdisk_path
|
|
str _temp_file_path
|
|
int _disk_size_mb
|
|
|
|
cpdef str load_model(self, bytes model_bytes)
|
|
cdef str _get_ramdisk_path(self)
|
|
cdef void _create_ramdisk(self)
|
|
cdef void _store_model(self)
|
|
cdef void _cleanup(self)
|