tvm
measure_candidate.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_META_SCHEDULE_MEASURE_CANDIDATE_H_
21 #define TVM_META_SCHEDULE_MEASURE_CANDIDATE_H_
22 
24 #include <tvm/node/reflection.h>
26 #include <tvm/runtime/object.h>
28 
29 namespace tvm {
30 namespace meta_schedule {
31 
34  public:
39 
41  v->Visit("sch", &sch);
42  v->Visit("args_info", &args_info);
43  }
44 
45  static constexpr const char* _type_key = "meta_schedule.MeasureCandidate";
47 };
48 
54  public:
62 };
63 
64 } // namespace meta_schedule
65 } // namespace tvm
66 
67 #endif // TVM_META_SCHEDULE_MEASURE_CANDIDATE_H_
Runtime Array container types.
Visitor class to get the attributes of an AST/IR node. The content is going to be called for each fie...
Definition: reflection.h:52
The schedule (with input shapes) to be measured.
Definition: measure_candidate.h:33
tir::Schedule sch
The schedule for measurement.
Definition: measure_candidate.h:36
static constexpr const char * _type_key
Definition: measure_candidate.h:45
Array< ArgInfo > args_info
The argument information, e.g., (shape, dtype) for tensors.
Definition: measure_candidate.h:38
void VisitAttrs(tvm::AttrVisitor *v)
Definition: measure_candidate.h:40
TVM_DECLARE_FINAL_OBJECT_INFO(MeasureCandidateNode, Object)
Managed reference to MeasureCandidateNode.
Definition: measure_candidate.h:53
TVM_DEFINE_NOTNULLABLE_OBJECT_REF_METHODS(MeasureCandidate, ObjectRef, MeasureCandidateNode)
MeasureCandidate(tir::Schedule sch, Array< ArgInfo > args_info)
Constructor of MeasureCandidate.
Array, container representing a contiguous sequence of ObjectRefs.
Definition: array.h:289
Base class of all object reference.
Definition: object.h:519
base class of all object containers.
Definition: object.h:171
Managed reference to ScheduleNode.
Definition: schedule.h:877
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
A managed object in the TVM runtime.
Reflection and serialization of compiler IR/AST nodes.