pytorch/c10
Richard Barnes 8558c0e612 Eliminate narrowing conversion (#46730)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/46730

A narrowing conversion on `last_idx` raises a compiler warning. This fixes that.

Test Plan: Standard pre-commit test rig.

Reviewed By: EscapeZero

Differential Revision: D24481497

fbshipit-source-id: f3e913b586738add59c422c3cf65035d87fc9e34
2020-10-22 20:08:59 -07:00
..
benchmark Formatting cmake (to lowercase without space for if/elseif/else/endif) (#35521) 2020-03-27 14:25:17 -07:00
core Eliminate narrowing conversion (#46730) 2020-10-22 20:08:59 -07:00
cuda Fix out-of-bounds access for caching allocator calls (#46439) 2020-10-16 08:24:46 -07:00
hip Formatting cmake (to lowercase without space for if/elseif/else/endif) (#35521) 2020-03-27 14:25:17 -07:00
macros maximum number of threads per block for sm_86 is 1536 (#45889) 2020-10-06 12:01:33 -07:00
mobile Bug fixes in profiling allocator (#45993) 2020-10-14 22:45:04 -07:00
test [c10] add operator= of intrusive_ptr to weak_intrusive_ptr (#44045) 2020-10-17 03:35:44 -07:00
util [c10] add operator= of intrusive_ptr to weak_intrusive_ptr (#44045) 2020-10-17 03:35:44 -07:00
CMakeLists.txt Use CAFFE2_USE_MSVC_STATIC_RUNTIME to determine when to avoid waiting for global destructors on Windows (#43532) 2020-10-01 16:41:14 -07:00