pytorch/c10/core
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
..
impl [pytorch/cuda] apply 16-bit mask to the index for device guard registry (#45485) 2020-10-05 22:37:47 -07:00
Allocator.cpp Memory profiling (#37775) 2020-05-19 15:48:48 -07:00
Allocator.h Memory profiling (#37775) 2020-05-19 15:48:48 -07:00
Backend.h [iOS][GPU] Add Metal/MPSCNN support on iOS (#46112) 2020-10-13 01:46:56 -07:00
CompileTimeFunctionPointer.h Back out "Revert D21986243: TORCH_FN" (#40110) 2020-06-16 13:38:29 -07:00
CopyBytes.cpp
CopyBytes.h
CPUAllocator.cpp Profiling allocator for mobile. (#43951) 2020-10-06 09:09:54 -07:00
CPUAllocator.h Memory profiling (#37775) 2020-05-19 15:48:48 -07:00
DefaultDtype.cpp Revert D23789657: [wip] fast typeMeta/ScalarType conversion approach 2 2020-09-29 09:40:53 -07:00
DefaultDtype.h Remove hacky_wrapper from BackendSelect kernels (#44062) 2020-09-25 09:04:03 -07:00
DefaultTensorOptions.h Remove TensorImpl::is_variable, deprecate Tensor::is_variable (#29653) 2019-11-14 11:41:02 -08:00
Device.cpp [py][vulkan][reland] Add is_vulkan to py api, add vulkan to device type parsing (#46655) 2020-10-22 09:35:50 -07:00
Device.h Pickler: convert std::stringstream cases. (#29351) 2019-11-08 14:26:40 -08:00
DeviceGuard.h
DeviceType.cpp [iOS][GPU] Add Metal/MPSCNN support on iOS (#46112) 2020-10-13 01:46:56 -07:00
DeviceType.h Update COMPILE_TIME_MAX_DEVICE_TYPES to 12 (#46327) 2020-10-15 02:09:17 -07:00
DispatchKey.cpp [dispatcher] avoid autograd fixup step on non-backend keys (#46135) 2020-10-13 23:33:15 -07:00
DispatchKey.h [iOS][GPU] Add Metal/MPSCNN support on iOS (#46112) 2020-10-13 01:46:56 -07:00
DispatchKeySet.cpp [dispatcher] avoid autograd fixup step on non-backend keys (#46135) 2020-10-13 23:33:15 -07:00
DispatchKeySet.h [GPU] Add metal to DispatchKeySet (#46455) 2020-10-16 16:33:26 -07:00
Event.h Canonicalize includes in c10, and add tests for it (#36299) 2020-04-10 12:07:52 -07:00
GeneratorImpl.cpp Replace std::shared_ptr with c10::intrusive_ptr in at::Generator (#36230) 2020-04-09 06:55:54 -07:00
GeneratorImpl.h Prerequisites for CSPRNG (#36631) 2020-04-24 12:25:37 -07:00
Layout.h Remove Backend -> THPLayout mapping. (#37527) 2020-04-30 11:11:09 -07:00
MemoryFormat.h remove deprecation warning on get_contiguous_memory_format (#37963) 2020-05-07 02:06:22 -07:00
QEngine.h Rename TensorTypeId to DispatchKey (#32154) 2020-01-15 11:16:08 -08:00
QScheme.h [quant] Create PerRowQuantizer for floating point scale and zero_point (#42612) 2020-08-13 11:20:53 -07:00
Scalar.cpp Reland Refactor c10::complex and cleanup c10::Scalar (#39306) 2020-06-01 11:51:57 -07:00
Scalar.h Rename is_complex_t -> is_complex (#39906) 2020-09-01 21:04:19 -07:00
ScalarType.h [quant] creating quint4x2 dtype for quantized tensors (#44678) 2020-10-01 23:53:34 -07:00
Storage.cpp
Storage.h Remove datatype from Storage and StorageImpl (#38870) 2020-05-21 15:26:08 -07:00
StorageImpl.cpp
StorageImpl.h Remove datatype from Storage and StorageImpl (#38870) 2020-05-21 15:26:08 -07:00
Stream.cpp
Stream.h Creates Torch-friendly Event class and adds Stream tracking to autograd (#25130) 2019-09-01 12:37:52 -07:00
StreamGuard.h
TensorImpl.cpp Revert D23789657: [wip] fast typeMeta/ScalarType conversion approach 2 2020-09-29 09:40:53 -07:00
TensorImpl.h Eliminate narrowing conversion (#46730) 2020-10-22 20:08:59 -07:00
TensorOptions.cpp Update ostream << TensorOptions printer. (#35892) 2020-04-03 15:01:59 -07:00
TensorOptions.h [iOS][GPU] Add Metal/MPSCNN support on iOS (#46112) 2020-10-13 01:46:56 -07:00
thread_pool.cpp [aten] Pass std::function<> to thread_pool by value, instead of const ref. (#37681) 2020-05-05 08:41:38 -07:00
thread_pool.h [aten] Pass std::function<> to thread_pool by value, instead of const ref. (#37681) 2020-05-05 08:41:38 -07:00
UndefinedTensorImpl.cpp Rename DispatchKey::UndefinedTensorId to Undefined (#32728) 2020-01-30 11:47:40 -08:00
UndefinedTensorImpl.h Revert D23789657: [wip] fast typeMeta/ScalarType conversion approach 2 2020-09-29 09:40:53 -07:00
WrapDimMinimal.h Replace all uses of AT_INDEX_ERROR with TORCH_CHECK_INDEX (#35050) 2020-03-24 09:10:51 -07:00