mirror of
https://gitee.com/fastnlp/fastNLP.git
synced 2024-12-02 12:17:35 +08:00
15 lines
311 B
Python
15 lines
311 B
Python
class BaseSaver(object):
|
|
"""base class for all savers"""
|
|
|
|
def __init__(self, save_path):
|
|
self.save_path = save_path
|
|
|
|
def save_bytes(self):
|
|
raise NotImplementedError
|
|
|
|
def save_str(self):
|
|
raise NotImplementedError
|
|
|
|
def compress(self):
|
|
raise NotImplementedError
|