Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

annotating the return variables #5935

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 6 additions & 3 deletions onnx/backend/test/case/node/lstm.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,16 @@
raise NotImplementedError()

def f(self, x: np.ndarray) -> np.ndarray:
return 1 / (1 + np.exp(-x))
output: np.ndarray = 1 / (1 + np.exp(-x))
return output

Check warning on line 80 in onnx/backend/test/case/node/lstm.py

View check run for this annotation

Codecov / codecov/patch

onnx/backend/test/case/node/lstm.py#L79-L80

Added lines #L79 - L80 were not covered by tests

def g(self, x: np.ndarray) -> np.ndarray:
return np.tanh(x)
output: np.ndarray = np.tanh(x)
return output

Check warning on line 84 in onnx/backend/test/case/node/lstm.py

View check run for this annotation

Codecov / codecov/patch

onnx/backend/test/case/node/lstm.py#L83-L84

Added lines #L83 - L84 were not covered by tests

def h(self, x: np.ndarray) -> np.ndarray:
return np.tanh(x)
output: np.ndarray = np.tanh(x)
return output

Check warning on line 88 in onnx/backend/test/case/node/lstm.py

View check run for this annotation

Codecov / codecov/patch

onnx/backend/test/case/node/lstm.py#L87-L88

Added lines #L87 - L88 were not covered by tests

def step(self) -> Tuple[np.ndarray, np.ndarray]:
seq_length = self.X.shape[0]
Expand Down