123456789101112131415161718 |
- from __future__ import absolute_import
- from __future__ import division
- from __future__ import print_function
- from collections import OrderedDict
- import torch
- from torch import nn
- class CTC(nn.Module):
- def __init__(self, in_channels, n_class, **kwargs):
- super().__init__()
- self.fc = nn.Linear(in_channels, n_class)
- self.n_class = n_class
- def forward(self, x):
- return self.fc(x)
|