mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 21:46:30 +00:00
e798af470b
automate tensorrt model conversion in case of no existing one for user's gpu
16 lines
374 B
Cython
16 lines
374 B
Cython
from msgpack import unpackb
|
|
|
|
cdef class Credentials:
|
|
|
|
def __init__(self, str email, str password):
|
|
self.email = email
|
|
self.password = password
|
|
|
|
@staticmethod
|
|
cdef from_msgpack(bytes data):
|
|
unpacked = unpackb(data, strict_map_key=False)
|
|
return Credentials(
|
|
unpacked.get("Email"),
|
|
unpacked.get("Password"))
|
|
|