[easy] [PyTorch Edge] Remove double pragma once directive in the generated code (#65620)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/65620

This was bothering me for a while.

ghstack-source-id: 138914860

Test Plan: Sandcastle

Reviewed By: beback4u

Differential Revision: D31162648

fbshipit-source-id: 72c47ea34d40c772bb53da721fcb36365b5dbaf3
This commit is contained in:
Dhruv Matani
2021-09-24 13:10:44 -07:00
committed by Facebook GitHub Bot
parent 57e066e188
commit 640a615150

View File

@ -12,7 +12,7 @@ if_condition_template_str = """if (kernel_tag_sv.compare("$kernel_tag_name") ==
}"""
if_condition_template = CodeTemplate(if_condition_template_str)
selected_kernel_dtypes_h_template_str = """#pragma once
selected_kernel_dtypes_h_template_str = """
#include <c10/core/ScalarType.h>
#include <c10/util/string_view.h>
#include <c10/macros/Macros.h>