Unverified Commit aa568358 authored by Minjie Wang's avatar Minjie Wang Committed by GitHub
Browse files

[Hotfix] hotfix for clang (#130)

parent 7fe6d0c8
......@@ -24,7 +24,7 @@ DLManagedTensor* CreateTmpDLManagedTensor(const TVMArgValue& arg) {
PackedFunc ConvertNDArrayVectorToPackedFunc(const std::vector<NDArray>& vec) {
auto body = [vec](TVMArgs args, TVMRetValue* rv) {
const size_t which = args[0];
const int which = args[0];
if (which >= vec.size()) {
LOG(FATAL) << "invalid choice";
} else {
......
......@@ -19,7 +19,7 @@ namespace {
// Convert EdgeArray structure to PackedFunc.
PackedFunc ConvertEdgeArrayToPackedFunc(const Graph::EdgeArray& ea) {
auto body = [ea] (TVMArgs args, TVMRetValue* rv) {
int which = args[0];
const int which = args[0];
if (which == 0) {
*rv = std::move(ea.src);
} else if (which == 1) {
......@@ -36,7 +36,7 @@ PackedFunc ConvertEdgeArrayToPackedFunc(const Graph::EdgeArray& ea) {
// Convert Subgraph structure to PackedFunc.
PackedFunc ConvertSubgraphToPackedFunc(const Subgraph& sg) {
auto body = [sg] (TVMArgs args, TVMRetValue* rv) {
int which = args[0];
const int which = args[0];
if (which == 0) {
Graph* gptr = new Graph();
*gptr = std::move(sg.graph);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment