[PyTorch] Remove implicit conversion from Tuple to vector reference (#63993)
authorScott Wolchok <swolchok@fb.com>
Tue, 14 Sep 2021 21:18:55 +0000 (14:18 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 14 Sep 2021 21:22:08 +0000 (14:22 -0700)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/63993

This seems to be unused, and it's pretty scary.
ghstack-source-id: 137978949

Test Plan: CI

Reviewed By: lw

Differential Revision: D30560441

fbshipit-source-id: 08b7ce971fd1e2dbeddbf37b02413fef513b4753

aten/src/ATen/core/ivalue_inl.h

index d22dfec..5507a13 100644 (file)
@@ -276,16 +276,10 @@ struct TORCH_API Tuple : c10::intrusive_ptr_target {
   const std::vector<IValue>& elements() const& {
     return elements_;
   }
-  operator const std::vector<IValue>&() const {
-    return elements();
-  }
 
   std::vector<IValue>& elements() & {
     return elements_;
   }
-  operator std::vector<IValue>&() {
-    return elements();
-  }
 
   std::vector<IValue>&& elements() && {
     return std::move(elements_);