mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
This reverts commit 5b98d43488bed0836b4da5996a50bafd0dd2c11c. Reverted https://github.com/pytorch/pytorch/pull/124520 on behalf of https://github.com/zou3519 due to broke static runtime tests ([comment](https://github.com/pytorch/pytorch/pull/124520#issuecomment-2075111935))
18 lines
452 B
C++
18 lines
452 B
C++
#pragma once
|
|
|
|
#include <ATen/core/function_schema.h>
|
|
#include <c10/macros/Macros.h>
|
|
#include <string>
|
|
#include <variant>
|
|
|
|
namespace torch {
|
|
namespace jit {
|
|
|
|
TORCH_API std::variant<c10::OperatorName, c10::FunctionSchema> parseSchemaOrName(
|
|
const std::string& schemaOrName);
|
|
TORCH_API c10::FunctionSchema parseSchema(const std::string& schema);
|
|
TORCH_API c10::OperatorName parseName(const std::string& name);
|
|
|
|
} // namespace jit
|
|
} // namespace torch
|