HF RL Explorer

The total size() and collapse() methods of the TensorShape class return incorrect sizes when the product of…

The total size() and collapse() methods of the TensorShape class return incorrect sizes when the product of…: a task in LegoFlow-SWE (Harbor dataset). TensorShape shape2{2000U, 3000U, 5000U}; // call collapse() or total size() — expected 30,000,000,000, but overflow causes wrong result

The task

TensorShape shape2{2000U, 3000U, 5000U}; // call collapse() or total_size() — expected 30,000,000,000, but overflow causes wrong result ```

Part of Lego-X/LegoFlow-SWE.