Skip to content

torch.dot bug #1822

@vlasenkov

Description

@vlasenkov

Built Torch from source with:

MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python setup.py build develop

running:

test/run_test.sh

getting:

FAIL: test_dot (__main__.TestTorch)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_torch.py", line 35, in test_dot
    self.assertEqual(res1, res2)
  File "/Users/leonidvlasenkov/pytorch/test/common.py", line 211, in assertEqual
    super(TestCase, self).assertEqual(x, y, message)
AssertionError: 0.0 != -15.408409330303812 : 

OS X 10.12.4.

From interpreter:

>>> v1 = torch.randn(100).float()
>>> v2 = torch.randn(100).float()
>>> torch.dot(v1, v2)
0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions