From a35e73b91ff6ab54424c6bb16babbd618ea3194f Mon Sep 17 00:00:00 2001 From: Dylan Maloy Date: Mon, 21 Apr 2025 23:18:46 +0000 Subject: [PATCH] [c10] add #pragma once to leftright (#151710) Summary: i am getting duplicate defn's when including in my binary that already includes the dispatcher. Test Plan: CI Differential Revision: D73237748 Pull Request resolved: https://github.com/pytorch/pytorch/pull/151710 Approved by: https://github.com/georgiaphillips --- c10/util/LeftRight.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/c10/util/LeftRight.h b/c10/util/LeftRight.h index 759f6967933..438f3aac269 100644 --- a/c10/util/LeftRight.h +++ b/c10/util/LeftRight.h @@ -1,3 +1,5 @@ +#pragma once + #include #include #include