/usr/local/lib64/python3.6/site-packages/torch/include/torch/csrc/jit/frontend
NameSizeModeActions
builtin_functions.h2540644editdlrm
canonicalize_modified_loop.h3260644editdlrm
code_template.h70570644editdlrm
concrete_module_type.h90400644editdlrm
convert_to_ssa.h3410644editdlrm
edit_distance.h2680644editdlrm
error_report.h14800644editdlrm
exit_transforms.h2320644editdlrm
function_schema_parser.h4600644editdlrm
inline_loop_condition.h3660644editdlrm
ir_emitter.h5410644editdlrm
lexer.h184700644editdlrm
mini_environment.h13660644editdlrm
name_mangler.h6690644editdlrm
parser.h6880644editdlrm
parser_constants.h1620644editdlrm
parse_string_literal.h22950644editdlrm
resolver.h19720644editdlrm
schema_matching.h19480644editdlrm
schema_type_parser.h9770644editdlrm
script_type_parser.h16190644editdlrm
source_range.h60380644editdlrm
source_ref.h12690644editdlrm
strtod.h2400644editdlrm
sugared_value.h268050644editdlrm
tracer.h119250644editdlrm
tree.h66350644editdlrm
tree_views.h356960644editdlrm
versioned_symbols.h5970644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/torch/include/torch/csrc/jit/frontend/schema_matching.h (1948B)
#pragma once #include #include #include #include namespace torch { namespace jit { // Try to match a list of inputs and keyword 'attributes' to this // schema. Return the flat list of positional inputs to the call or // `c10::nullopt` on failure (`failure_messages` contains a good error // report in this case) struct MatchedSchema { std::vector inputs; std::vector return_types; c10::OptNameList return_field_names; }; TORCH_API MatchedSchema matchSchema( const ::c10::FunctionSchema& schema, const SourceRange& loc, Graph& graph, at::ArrayRef args, at::ArrayRef kwargs, const c10::optional& self = c10::nullopt); TORCH_API std::pair matchSchemas( const std::vector& schemas, const SourceRange& loc, Graph& graph, at::ArrayRef args, at::ArrayRef kwargs, const c10::optional& self = c10::nullopt, bool render_errors = false); TORCH_API bool convertibleToList( const TypePtr& type, const TypePtr& list_type_); TORCH_API Value* emitBuiltinCall( const SourceRange& loc, Graph& graph, Symbol name, at::ArrayRef args, at::ArrayRef kwargs, const c10::optional& self = c10::nullopt); TORCH_API c10::optional findInputWithName( const std::string& name, at::ArrayRef kwargs); // applies implicit conversion from value trying to turn it into type // concrete_type it succeeds if the return_value->isSubtypeOf(concrete_type) TORCH_API Value* tryConvertToType( const SourceRange& loc, Graph& graph, const TypePtr& concrete_type, Value* value, bool allow_conversions); } // namespace jit } // namespace torch