mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
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:
parent
0b49778666
commit
a3f9cf9497
2 changed files with 4 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue