tvm
parser.h
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the
7  * "License"); you may not use this file except in compliance
8  * with the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  * KIND, either express or implied. See the License for the
16  * specific language governing permissions and limitations
17  * under the License.
18  */
19 
20 #ifndef TVM_PARSER_PARSER_H_
21 #define TVM_PARSER_PARSER_H_
22 
26 #include <tvm/ir/module.h>
28 #include <tvm/runtime/registry.h>
29 
30 #include <fstream>
31 #include <string>
32 
33 namespace tvm {
34 namespace parser {
35 
37 
38 IRModule ParseModule(const std::string& file_name, const std::string& file_content,
39  const Optional<IRModule>& init_module = Optional<IRModule>(),
40  const MetaTable& init_meta_table = MetaTable());
41 
42 } // namespace parser
43 } // namespace tvm
44 
45 #endif // TVM_PARSER_PARSER_H_
IRModule that holds the functions and type definitions.
Performance counters for profiling via the PAPI library.
Definition: analyzer.h:36
Map< String, Array< ObjectRef > > MetaTable
Definition: parser.h:36
IRModule ParseModule(const std::string &file_name, const std::string &file_content, const Optional< IRModule > &init_module=Optional< IRModule >(), const MetaTable &init_meta_table=MetaTable())
Managed reference class to IRModuleNode.
Definition: module.h:352
Map container of NodeRef->NodeRef in DSL graph. Map implements copy on write semantics, which means map is mutable but copy will happen when array is referenced in more than two places.
Definition: map.h:1235
Optional container that to represent to a Nullable variant of T.
Definition: optional.h:51
Type-erased function used across TVM API.
This file defines the TVM global function registry.