xref: /aosp_15_r20/external/pytorch/torch/csrc/jit/mobile/import_export_common.h (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1 #pragma once
2 
3 /**
4  * @file
5  * Declarations shared between import_data.cpp and export_data.cpp
6  */
7 
8 namespace torch::jit::mobile::internal {
9 /**
10  * The name of the mobile::Module attribute which contains saved parameters, as
11  * a Dict of names to Tensors. Only used for Flatbuffer serialization.
12  */
13 // NOLINTNEXTLINE(cppcoreguidelines-avoid-c-arrays,modernize-avoid-c-arrays)
14 constexpr char kSavedParametersAttributeName[] = "data";
15 } // namespace torch::jit::mobile::internal
16