pytorch
1f83d8ee - [Static Runtime] Return nullptr if the number of input args doesn't match (#58018)

Commit
3 years ago
[Static Runtime] Return nullptr if the number of input args doesn't match (#58018) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/58018 - Add checks for the number of input args and return nullptr if it doesn't match. This is intended to make Static Runtime more robust so that op schema change is less likely to break things. Imagine that a new arg is added to an op or a new overload is added that has this added arg, SR would simply ignore this added arg. If this arg has a default value, SR would run the model with the default value and give you wrong results, which can be hard to track down. Reviewed By: ajyu Differential Revision: D28047955 fbshipit-source-id: 01067059edd5cfea80c4ee121829f7733b11f601
Author
Hao Lu
Parents
Loading