8000 `tensordot` will trigger INTERNAL ASSERT FAILED when input requiring grad · Issue #77517 · pytorch/pytorch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
tensordot will trigger INTERNAL ASSERT FAILED when input requiring grad #77517
Closed
@upupyy

Description

@upupyy

🐛 Describe the bug

tensordot will trigger INTERNAL ASSERT FAILED when input requiring grad

import torch

a = torch.randint(-1, 8, [3, 4, 5], dtype=torch.int8)
b = torch.rand([4, 3, 0], dtype=torch.complex64, requires_grad=True)
torch.tensordot(a, b, dims=[[1, 0], [0, 1]])
# RuntimeError: isDifferentiableType(variable.scalar_type())INTERNAL ASSERT FAILED at "/Users/distiller/project/pytorch/torch/csrc/autograd/functions/utils.h":65, please report a bug to PyTorch. 

Versions

pytorch: 1.11.0

cc @ezyang @albanD @zou3519 @gqchen @pearu @nikitaved @soulitzer @lezcano @Varal7 @nairbv @mruberry @jianyuh @walterddr @IvanYashchuk @xwang233

Metadata

Metadata

Assignees

No one assigned

    Labels

    actionablemodule: autogradRelated to torch.autograd, and the autograd engine in generalmodule: linear algebraIssues related to specialized linear algebra operations in PyTorch; includes matrix multiply matmulmodule: type promotionRelated to semantics of type promotiontriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0