Mousius commented on a change in pull request #9246: URL: https://github.com/apache/tvm/pull/9246#discussion_r727389440
########## File path: include/tvm/relay/executor.h ########## @@ -0,0 +1,276 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/*! + * \file tvm/relay/executor.h + * \brief Object representation of Executor configuration and registry + */ +#ifndef TVM_RELAY_EXECUTOR_H_ +#define TVM_RELAY_EXECUTOR_H_ + +#include <dmlc/registry.h> +#include <tvm/ir/attrs.h> +#include <tvm/ir/expr.h> +#include <tvm/ir/type.h> +#include <tvm/ir/type_relation.h> +#include <tvm/node/attr_registry_map.h> +#include <tvm/runtime/registry.h> + +#include <string> +#include <unordered_map> +#include <utility> +#include <vector> + +namespace tvm { + +template <typename, typename> +class AttrRegistry; + +namespace relay { + +/*! + * \brief Executor information. + * + * This data structure stores the meta-data + * about executors which can be used to pass around information. + * + * \sa Executor + */ +class ExecutorNode : public Object { Review comment: At the moment all the options are enclosed in the attributes, but I left it open for extension if we want to do `class AOTExecutorNode : ExecutorNode` or similar - I see this being more of a thing with `Runtime` which may well represent the runtime itself at some point. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
