Skip to content

Commit

Permalink
revert test/expect files (pytorch#12332)
Browse files Browse the repository at this point in the history
Summary:
Linter added newline to the expect files in pytorch#12144 . This reverts it.
Pull Request resolved: pytorch#12332

Reviewed By: SsnL

Differential Revision: D10201790

Pulled By: Yangqing

fbshipit-source-id: 29f87c013c3522675a765a81a92520fbaea10057
  • Loading branch information
Yangqing authored and facebook-github-bot committed Oct 4, 2018
1 parent 83de6f0 commit 6b79e16
Show file tree
Hide file tree
Showing 38 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion test/expect/TestAutograd.test_function-x_grad_desc.expect
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CloneBackward(AddBackward0(ExpandBackward(AccumulateGrad()), MulBackward0(ExpandBackward(AccumulateGrad()), AccumulateGrad())))
CloneBackward(AddBackward0(ExpandBackward(AccumulateGrad()), MulBackward0(ExpandBackward(AccumulateGrad()), AccumulateGrad())))
2 changes: 1 addition & 1 deletion test/expect/TestAutograd.test_function-y_grad_desc.expect
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CloneBackward(AddBackward0(MulBackward0(ExpandBackward(AccumulateGrad()), None), MulBackward0(ExpandBackward(AccumulateGrad()), AccumulateGrad())))
CloneBackward(AddBackward0(MulBackward0(ExpandBackward(AccumulateGrad()), None), MulBackward0(ExpandBackward(AccumulateGrad()), AccumulateGrad())))
2 changes: 1 addition & 1 deletion test/expect/TestScript.test_annot_ast_mypy_fn.expect
Original file line number Diff line number Diff line change
@@ -1 +1 @@
foo(Tensor x, (Tensor, Tensor) y) -> (Tensor, Tensor)
foo(Tensor x, (Tensor, Tensor) y) -> (Tensor, Tensor)
2 changes: 1 addition & 1 deletion test/expect/TestScript.test_annot_ast_mypy_method.expect
Original file line number Diff line number Diff line change
@@ -1 +1 @@
foo(Tensor x, (Tensor, Tensor) y) -> (Tensor, Tensor)
foo(Tensor x, (Tensor, Tensor) y) -> (Tensor, Tensor)
2 changes: 1 addition & 1 deletion test/expect/TestScript.test_annot_ast_py3_fn.expect
Original file line number Diff line number Diff line change
@@ -1 +1 @@
foo(Tensor x, (Tensor, Tensor) y) -> (Tensor, Tensor)
foo(Tensor x, (Tensor, Tensor) y) -> (Tensor, Tensor)
2 changes: 1 addition & 1 deletion test/expect/TestScript.test_annot_ast_py3_method.expect
Original file line number Diff line number Diff line change
@@ -1 +1 @@
foo(Tensor x, (Tensor, Tensor) y) -> (Tensor, Tensor)
foo(Tensor x, (Tensor, Tensor) y) -> (Tensor, Tensor)
2 changes: 1 addition & 1 deletion test/expect/TestScript.test_annot_string_mypy_fn.expect
Original file line number Diff line number Diff line change
@@ -1 +1 @@
foo(Tensor x, (Tensor, Tensor) y) -> (Tensor, Tensor)
foo(Tensor x, (Tensor, Tensor) y) -> (Tensor, Tensor)
Original file line number Diff line number Diff line change
@@ -1 +1 @@
foo(Tensor x, (Tensor, Tensor) y) -> (Tensor, Tensor)
foo(Tensor x, (Tensor, Tensor) y) -> (Tensor, Tensor)
2 changes: 1 addition & 1 deletion test/expect/TestScript.test_annot_string_py3_fn.expect
Original file line number Diff line number Diff line change
@@ -1 +1 @@
foo(Tensor x, (Tensor, Tensor) y) -> (Tensor, Tensor)
foo(Tensor x, (Tensor, Tensor) y) -> (Tensor, Tensor)
2 changes: 1 addition & 1 deletion test/expect/TestScript.test_annot_string_py3_method.expect
Original file line number Diff line number Diff line change
@@ -1 +1 @@
foo(Tensor x, (Tensor, Tensor) y) -> (Tensor, Tensor)
foo(Tensor x, (Tensor, Tensor) y) -> (Tensor, Tensor)
2 changes: 1 addition & 1 deletion test/expect/TestScript.test_annotated_script_fn.expect
Original file line number Diff line number Diff line change
@@ -1 +1 @@
foo(Tensor x, (Tensor, Tensor, Tensor) y, (Tensor, (Tensor, Tensor)) z) -> Tensor
foo(Tensor x, (Tensor, Tensor, Tensor) y, (Tensor, (Tensor, Tensor)) z) -> Tensor
2 changes: 1 addition & 1 deletion test/expect/TestScript.test_annotated_script_method.expect
Original file line number Diff line number Diff line change
@@ -1 +1 @@
forward((Tensor, Tensor) x, Tensor y) -> (Tensor, Tensor, Tensor)
forward((Tensor, Tensor) x, Tensor y) -> (Tensor, Tensor, Tensor)
2 changes: 1 addition & 1 deletion test/expect/TestScript.test_parser_type_annotations.expect
Original file line number Diff line number Diff line change
@@ -1 +1 @@
foo(Tensor x, ((Tensor, Tensor), Tensor) y) -> (Tensor, Tensor)
foo(Tensor x, ((Tensor, Tensor), Tensor) y) -> (Tensor, Tensor)
Original file line number Diff line number Diff line change
@@ -1 +1 @@
foo(Tensor x, ((Tensor, Tensor), Tensor) y) -> (Tensor, Tensor)
foo(Tensor x, ((Tensor, Tensor), Tensor) y) -> (Tensor, Tensor)
Original file line number Diff line number Diff line change
@@ -1 +1 @@
foo(Tensor x, (Tensor, Tensor) y) -> (Tensor, Tensor)
foo(Tensor x, (Tensor, Tensor) y) -> (Tensor, Tensor)
Original file line number Diff line number Diff line change
@@ -1 +1 @@
foo(Tensor x, (Tensor, Tensor) y) -> (Tensor, Tensor)
foo(Tensor x, (Tensor, Tensor) y) -> (Tensor, Tensor)
Original file line number Diff line number Diff line change
@@ -1 +1 @@
foo(Tensor x, (Tensor, Tensor) y) -> (Tensor, Tensor)
foo(Tensor x, (Tensor, Tensor) y) -> (Tensor, Tensor)
Original file line number Diff line number Diff line change
@@ -1 +1 @@
foo(Tensor x, (Tensor, Tensor) y) -> (Tensor, Tensor)
foo(Tensor x, (Tensor, Tensor) y) -> (Tensor, Tensor)
2 changes: 1 addition & 1 deletion test/expect/TestTorch.test_is_nonzero-empty.expect
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bool value of Tensor with no values is ambiguous
bool value of Tensor with no values is ambiguous
2 changes: 1 addition & 1 deletion test/expect/TestTorch.test_is_nonzero-multiple.expect
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bool value of Tensor with more than one value is ambiguous
bool value of Tensor with more than one value is ambiguous
2 changes: 1 addition & 1 deletion test/expect/TestTorch.test_print-bigint.expect
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tensor(2341234123412341)
tensor(2341234123412341)
2 changes: 1 addition & 1 deletion test/expect/TestTorch.test_print-default_device.expect
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tensor([123])
tensor([123])
2 changes: 1 addition & 1 deletion test/expect/TestTorch.test_print-default_dtype.expect
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
tensor([ 0.0000e+00, 9.8813e-324, 9.8813e-323, 1.0000e+307, 1.0000e+308,
inf])
inf])
2 changes: 1 addition & 1 deletion test/expect/TestTorch.test_print-device.expect
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tensor([123], device='cuda:0')
tensor([123], device='cuda:0')
2 changes: 1 addition & 1 deletion test/expect/TestTorch.test_print-dtype.expect
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
tensor([ 0.0000e+00, 9.8813e-324, 9.8813e-323, 1.0000e+307, 1.0000e+308,
inf], dtype=torch.float64)
inf], dtype=torch.float64)
2 changes: 1 addition & 1 deletion test/expect/TestTorch.test_print-negint.expect
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tensor([ 1, -2])
tensor([ 1, -2])
2 changes: 1 addition & 1 deletion test/expect/TestTorch.test_print-non_contiguous.expect
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ tensor([[[1., 1., 1., ..., 1., 1., 1.],
[1., 1., 1., ..., 1., 1., 1.]],

[[1., 1., 1., ..., 1., 1., 1.],
[1., 1., 1., ..., 1., 1., 1.]]])
[1., 1., 1., ..., 1., 1., 1.]]])
2 changes: 1 addition & 1 deletion test/expect/TestTorch.test_print-nonfinite.expect
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tensor([4.0000, inf, 1.5000, -inf, 0.0000, nan, 1.0000])
tensor([4.0000, inf, 1.5000, -inf, 0.0000, nan, 1.0000])
2 changes: 1 addition & 1 deletion test/expect/TestTorch.test_print-posint.expect
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tensor([1, 2])
tensor([1, 2])
2 changes: 1 addition & 1 deletion test/expect/TestTorch.test_print-requires_grad.expect
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tensor([123.], requires_grad=True)
tensor([123.], requires_grad=True)
2 changes: 1 addition & 1 deletion test/expect/TestTorch.test_print-scimode.expect
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tensor([1.0000e+28, 1.0000e-28])
tensor([1.0000e+28, 1.0000e-28])
2 changes: 1 addition & 1 deletion test/expect/TestTorch.test_print-summary.expect
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tensor([0., 0., 0., ..., 0., 0., 0.])
tensor([0., 0., 0., ..., 0., 0., 0.])
Original file line number Diff line number Diff line change
@@ -1 +1 @@
When I exported your model with different inputs, the result
When I exported your model with different inputs, the result
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ ERROR: Strings are not equal:

* A difference in model structure usually means that
your model has dynamic control flow. These models are not
currently supported by the exporter.
currently supported by the exporter.
2 changes: 1 addition & 1 deletion test/onnx/expect/TestVerify.test_explicit_test_args.expect
Original file line number Diff line number Diff line change
@@ -1 +1 @@
When I exported your model with different inputs, the result
When I exported your model with different inputs, the result
2 changes: 1 addition & 1 deletion test/onnx/expect/TestVerify.test_jumbled_params.expect
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ ERROR: Parameters list differs: [] != [u'1']

* This is really strange! The second time I exported your model,
it had a different set of parameters. Are you assigning Parameters
in the forward() of your model definition?
in the forward() of your model definition?
2 changes: 1 addition & 1 deletion test/onnx/expect/TestVerify.test_modifying_params.expect
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Arrays are not equal

(mismatch 100.0%)
x: array([3.], dty
x: array([3.], dty
2 changes: 1 addition & 1 deletion test/onnx/expect/TestVerify.test_result_different.expect
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

Not equal to tolerance rtol=0.001, atol=1e-07

(mismatch 10
(mismatch 10

0 comments on commit 6b79e16

Please sign in to comment.