fix typos

This commit is contained in:
chenfeiyu 2021-06-10 02:45:45 +08:00
parent 0114a808a2
commit dc9040dd4d
2 changed files with 3 additions and 3 deletions

View File

@ -58,8 +58,8 @@ class KBest(object):
def __init__(self, def __init__(self,
max_size: int=5, max_size: int=5,
save_fn: Callable=None, save_fn: Callable[[Path], None]=None,
del_fn: Callable=lambda f: f.unlink()): del_fn: Callable[[Path], None]=lambda f: f.unlink()):
self.best_records: Mapping[Path, float] = {} self.best_records: Mapping[Path, float] = {}
self.save_fn = save_fn self.save_fn = save_fn
self.del_fn = del_fn self.del_fn = del_fn

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from parakeet.training.chekpoint import KBest from parakeet.training.checkpoint import KBest
import numpy as np import numpy as np
from pathlib import Path from pathlib import Path
import shutil import shutil