8000 ops.mul() needs long, byte or bool · Issue #43 · rballester/tntorch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
ops.mul() needs long, byte or bool #43
Open
@bastiengiraud

Description

@bastiengiraud

Hi All,

When I'm trying to do this simple element wise multiplication:

"""
A = tn.ones(10,10).to(torch.long)
B = tn.rand(10,10).to(torch.long)

result = tn.mul(A,B)
"""

I get an error saying that tensors used as indices must be long, byte or bool. However, it seems like the error is produced within the tn.cross function. Any ideas on how to fix this?

long, byte or bool

Thank you and cheers,
Bastien

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0