mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
18 lines
319 B
Python
18 lines
319 B
Python
import torch
|
|
|
|
|
|
class FunASRModel(torch.nn.Module):
|
|
"""The common model class
|
|
|
|
"""
|
|
|
|
def __init__(self):
|
|
super().__init__()
|
|
self.num_updates = 0
|
|
|
|
def set_num_updates(self, num_updates):
|
|
self.num_updates = num_updates
|
|
|
|
def get_num_updates(self):
|
|
return self.num_updates
|