summaryrefslogtreecommitdiff
path: root/caffe2/opt
diff options
context:
space:
mode:
authorChristian Puhrsch <cpuhrsch@fb.com>2018-09-22 18:07:38 -0700
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>2018-09-22 18:11:04 -0700
commita6630e25afb49642cf517ee948f5a0c06a9cba6d (patch)
tree9b8e21397d409ae522d8d50c7bfa78f22f48ae52 /caffe2/opt
parent5d0f1c3c8ff4cb14bdf554b447d6851877d710ac (diff)
downloadpytorch-a6630e25afb49642cf517ee948f5a0c06a9cba6d.tar.gz
pytorch-a6630e25afb49642cf517ee948f5a0c06a9cba6d.tar.bz2
pytorch-a6630e25afb49642cf517ee948f5a0c06a9cba6d.zip
Remove many caffe2::TIndex and replace them with int64_t (#11943)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/11943 See title Reviewed By: ezyang Differential Revision: D9992645 fbshipit-source-id: e8f80d6ea762971513e5e8072975ceea53e1f11a
Diffstat (limited to 'caffe2/opt')
-rw-r--r--caffe2/opt/onnxifi_transformer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/caffe2/opt/onnxifi_transformer.cc b/caffe2/opt/onnxifi_transformer.cc
index 2f48ece4fd..ce79df56ec 100644
--- a/caffe2/opt/onnxifi_transformer.cc
+++ b/caffe2/opt/onnxifi_transformer.cc
@@ -174,7 +174,7 @@ NetDef OnnxifiTransformer::SubnetToOnnxifiOp(
// Feed into workspace as CPU Tensors
auto* blob = ws->CreateBlob(t.name());
auto* cpu_tensor = blob->GetMutableTensor(CPU);
- std::vector<TIndex> dims;
+ std::vector<int64_t> dims;
for(const auto& d : t.dims()) {
dims.push_back(d);
}