summaryrefslogtreecommitdiff
path: root/torch/csrc/jit/stack.h
diff options
context:
space:
mode:
Diffstat (limited to 'torch/csrc/jit/stack.h')
-rw-r--r--torch/csrc/jit/stack.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/torch/csrc/jit/stack.h b/torch/csrc/jit/stack.h
index 2c74ae7e0a..7a23aa55df 100644
--- a/torch/csrc/jit/stack.h
+++ b/torch/csrc/jit/stack.h
@@ -77,8 +77,8 @@ inline void pack(Stack & stack, T&& v) {
}
template<>
-inline void pack(Stack & stack, std::vector<at::Tensor>&& ts) {
- for(auto& t : ts) {
+inline void pack(Stack & stack, std::vector<at::Tensor>&& v) {
+ for(auto& t : v) {
stack.push_back(IValue(std::move(t)));
}
}