Fix fastrnn benchmark regression introduced by 49946 (#50517)

Summary:
Simply add missing `from typing import List, Tuple` and `from torch import Tensor`

Fixes regression introduced by https://github.com/pytorch/pytorch/pull/49946

Pull Request resolved: https://github.com/pytorch/pytorch/pull/50517

Reviewed By: gchanan

Differential Revision: D25908379

Pulled By: malfet

fbshipit-source-id: a44b96681b6121e61b69f960f81c0cad3f2a8d20
This commit is contained in:
Nikita Shulga 2021-01-13 19:08:15 -08:00 committed by Facebook GitHub Bot
parent 0b49778666
commit a3f9cf9497
2 changed files with 4 additions and 0 deletions

View file

@ -1,4 +1,6 @@
import torch
from typing import Tuple
from torch import Tensor
def milstm_cell(x, hx, cx, w_ih, w_hh, alpha, beta_i, beta_h, bias):

View file

@ -1,6 +1,8 @@
import torch
from collections import namedtuple
from typing import List, Tuple
from torch import Tensor
from .cells import lstm_cell, premul_lstm_cell, premul_lstm_cell_no_bias, flat_lstm_cell