yzhliu commented on a change in pull request #15550: Infra to use tvm write op kernels URL: https://github.com/apache/incubator-mxnet/pull/15550#discussion_r304054931
########## File path: src/operator/tvmop/op_module.cc ########## @@ -0,0 +1,117 @@ +/* + * 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. + */ + +/*! + * Copyright (c) 2019 by Contributors + * \file op_module.cc + * \brief Invoke registered TVM operators. + * \author Yizhi Liu + */ +#if MXNET_USE_TVM_OP +#include <tvm/runtime/packed_func.h> +#include <tvm/runtime/registry.h> +#include <tvm/runtime/c_runtime_api.h> +#include <string> +#include <vector> +#include "op_module.h" + +using namespace tvm::runtime; + +namespace tvm { +namespace runtime { + +void TVMOpModule::Load(const std::string &filepath) { Review comment: agree. maybe add later? haven't been very clear what/how to pass these information and how to use them Currently as it is loading an AOT compiled module, avx instruction info won't help. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
