mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Turn onnx functions into static (#147598)
To avoid exposing ONNX symbols. Pull Request resolved: https://github.com/pytorch/pytorch/pull/147598 Approved by: https://github.com/justinchuby
This commit is contained in:
parent
3395da7f7c
commit
b61a556427
|
|
@ -414,7 +414,7 @@ class GraphEncoder {
|
|||
static constexpr size_t ParamSizeThresholdForExternalStorage = 1024;
|
||||
};
|
||||
|
||||
onnx::TensorProto_DataType ATenTypeToOnnxType(at::ScalarType at_type) {
|
||||
static onnx::TensorProto_DataType ATenTypeToOnnxType(at::ScalarType at_type) {
|
||||
switch (at_type) {
|
||||
case at::kDouble:
|
||||
return onnx::TensorProto_DataType_DOUBLE;
|
||||
|
|
@ -459,7 +459,7 @@ onnx::TensorProto_DataType ATenTypeToOnnxType(at::ScalarType at_type) {
|
|||
}
|
||||
}
|
||||
|
||||
onnx::AttributeProto_AttributeType ATenAttributeKindToOnnxAttributeType(
|
||||
static onnx::AttributeProto_AttributeType ATenAttributeKindToOnnxAttributeType(
|
||||
AttributeKind at_kind,
|
||||
const jit::Symbol name) {
|
||||
switch (at_kind) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user