pytorch
c2549cb8 - Remove DimensionedTensorType (#24077)

Commit
5 years ago
Remove DimensionedTensorType (#24077) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/24077 This replaces all uses of DimensionedTensorType with ProfiledTensorType. For places where we propagate shape information, we still follow the dimension-only propagation rules, meaning that even if full size information is known on inputs the outputs will only have dimension information. This fixes several bugs in existing implentations that this change uncovered: * requires_grad was not propgated correctly across loops * requires_grad on ProfiledTensorType returned false when requires_grad information is unknown but the conservative result is true * some equality code on ProfiledTensorType contained bugs. Test Plan: Imported from OSS Reviewed By: suo Differential Revision: D16729581 Pulled By: zdevito fbshipit-source-id: bd9f823c1c6b1d06a236a1b5b2b2fcdf0245edce
Author
Parents
Loading