Skip to content

div operation occur error #23

Description

@zlbing

I have a tensor A shape [1,256,15,20] and B shape [1,1,15,20],
when I use A.div(B), it error.
the error is
terminate called after throwing an instance of 'std::runtime_error' what(): invalid argument 3: sizes do not match at /home/zzz/work-space/pytorch-cpp/ATen/lib/THC/generated/../generic/THCTensorMathPointwise.cu:345

for Example
Tensor A = CPU(kFloat).randn({1,10,5,5}); Tensor B = CPU(kFloat).randn({1,1,5,5}); A = A.div(B);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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