add #pragma once to stable/library.h (#154920)

This shoulda been there and it was an oversight that it was not! We do not want the same translation unit to process this header multiple times.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/154920
Approved by: https://github.com/albanD, https://github.com/Skylion007
This commit is contained in:
Jane Xu 2025-06-03 08:33:00 -07:00 committed by PyTorch MergeBot
parent 6f7694f18f
commit e8183f8d3d

View File

@ -1,3 +1,4 @@
#pragma once
// this file can only have stable stuff! Akin to shim.h // this file can only have stable stuff! Akin to shim.h
// but unlike shim.h, this file can contain header-only C++ // but unlike shim.h, this file can contain header-only C++
// code for better UX. // code for better UX.