Skip to content

Error messages to improve #39

@apaszke

Description

@apaszke
  • THNN errors (say exactly which function has failed) - depends on the C API
  • double backward without save_variables=True
  • accept int as real for float types
  • constructing variables with non-tensor objects
  • torch.cat prints TODO: torch.cat(torch.Tensor(128), torch.Tensor(128))
  • CUDA OOM when constructing tensors says the arguments were invalid
  • out of range errors
  • inconsistent tensor size
  • use of variables in torch.xxx APIs expecting tensors
  • Convolution with invalid input sizes
  • torch.cat (on variables) when given a.cat((b), 1) # a and b are 2D
  • torch.cat when given different tensor types. torch.cat((a,b)) where a is LongTensor and b is FloatTensor for example.
  • when autograd.Function.forward returns something other than a tensor or tuple(tensor)
  • when MyFunction.backward() takes the incorrect number of arguments
  • addbmm output tensor of incorrect size at /Users/soumith/code/pytorch/torch/lib/TH/generic/THTensorMath.c:1040
RuntimeError: out of range at /Users/soumith/anaconda/conda-bld/pytorch-0.1.4_1475478983079/work/torch/lib/TH/generic/THTensor.c:350

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: error checkingBugs related to incorrect/lacking error checkingtriagedThis 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