嘉渊
2023-05-11 81a5b29804800a4edd76c8dda2727d6fdf4b5643
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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