mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
UFMT formatting on test/autograd test/ao test/cpp test/backends (#123369)
Partially addresses #123062 Ran lintrunner on - test/_test_bazel.py - test/ao - test/autograd test/backends test/benchmark_uitls test/conftest.py test/bottleneck_test test/cpp Pull Request resolved: https://github.com/pytorch/pytorch/pull/123369 Approved by: https://github.com/huydhn
This commit is contained in:
committed by
PyTorch MergeBot
parent
de7edeea25
commit
f71e368969
@ -11,11 +11,14 @@ The name uses underscore `_test_bazel.py` to avoid globbing into other non-bazel
|
||||
|
||||
import torch
|
||||
|
||||
|
||||
def test_sum() -> None:
|
||||
assert torch.eq(torch.tensor([[1, 2, 3]]) + torch.tensor([[4, 5, 6]]), torch.tensor([[5, 7, 9]])).all()
|
||||
assert torch.eq(
|
||||
torch.tensor([[1, 2, 3]]) + torch.tensor([[4, 5, 6]]), torch.tensor([[5, 7, 9]])
|
||||
).all()
|
||||
|
||||
|
||||
def test_simple_compile_eager() -> None:
|
||||
|
||||
def foo(x: torch.Tensor, y: torch.Tensor) -> torch.Tensor:
|
||||
a = torch.sin(x)
|
||||
b = torch.cos(y)
|
||||
|
Reference in New Issue
Block a user