pytorch
3cf08eaf - [Pytorch Mobile] Improve Bundled Inputs Error Checking (#52386)

Commit
3 years ago
[Pytorch Mobile] Improve Bundled Inputs Error Checking (#52386) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/52386 Remove stale aliasing inputs warning, error check that inputs is not null and has at least one entry, error check that the list of inputs is a list of tuples. This can cause subtle bugs where if the user passes in a list of tensors (the most common mistake) the first dimension of each tensor is dropped. This can go unnoticed because its the often the batch dimension which pytorch occasionally silently re-adds if its missing ghstack-source-id: 122363487 Test Plan: Bundle something with an input, bundle something with {} for inputs For typing check below paste {P199554712} Reviewed By: dhruvbird Differential Revision: D26374867 fbshipit-source-id: cd176f34bad7a4da850b165827f8b2448cd9200d
Author
Parents
Loading