From 364d92f9b6864ce284fa13519c7ca5c87460e477 Mon Sep 17 00:00:00 2001
From: mikey dagitses <mikeyd@meta.com>
Date: Wed, 22 Mar 2023 17:06:16 +0000
Subject: [PATCH] remove dead torch_pb.h library (#97323)

remove dead torch_pb.h library

Summary: This is only used in one place, ensure it still builds.

Test Plan: Rely on CI.

Reviewers: sahanp

Subscribers:

Tasks:

Tags:

---
Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/pytorch/pytorch/pull/97323).
* #97337
* #97336
* #97335
* #97334
* #97325
* #97324
* __->__ #97323
* #97322
Pull Request resolved: https://github.com/pytorch/pytorch/pull/97323
Approved by: https://github.com/malfet
---
 caffe2/proto/torch_pb.h                        | 8 --------
 torch/csrc/jit/serialization/import_legacy.cpp | 2 +-
 2 files changed, 1 insertion(+), 9 deletions(-)
 delete mode 100644 caffe2/proto/torch_pb.h

diff --git a/caffe2/proto/torch_pb.h b/caffe2/proto/torch_pb.h
deleted file mode 100644
index 14a058e9652068..00000000000000
--- a/caffe2/proto/torch_pb.h
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef CAFFE2_PROTO_TORCH_PB_H_
-#define CAFFE2_PROTO_TORCH_PB_H_
-
-#include <caffe2/core/common.h>
-#include <caffe2/proto/caffe2_pb.h>
-#include <caffe2/proto/torch.pb.h>
-
-#endif // CAFFE2_PROTO_TORCH_PB_H_
diff --git a/torch/csrc/jit/serialization/import_legacy.cpp b/torch/csrc/jit/serialization/import_legacy.cpp
index d4972f4cf34929..cbc022f8d5b63d 100644
--- a/torch/csrc/jit/serialization/import_legacy.cpp
+++ b/torch/csrc/jit/serialization/import_legacy.cpp
@@ -12,7 +12,7 @@
 #include <caffe2/core/common.h>
 #include <caffe2/core/types.h>
 #include <caffe2/proto/caffe2_pb.h>
-#include <caffe2/proto/torch_pb.h>
+#include <caffe2/proto/torch.pb.h>
 #include <caffe2/serialize/inline_container.h>
 
 #include <ATen/ATen.h>