[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
This commit is contained in:
Dylan Maloy
2025-04-21 23:18:46 +00:00
committed by PyTorch MergeBot
parent 99aeee2c5f
commit a35e73b91f

View File

@ -1,3 +1,5 @@
#pragma once
#include <c10/macros/Macros.h>
#include <c10/util/Synchronized.h>
#include <array>