Skip to content

Commit

Permalink
Hacking (apache#35)
Browse files Browse the repository at this point in the history
Repair layout issue
  • Loading branch information
jroesch authored and tmoreau89 committed Mar 21, 2019
1 parent d16b039 commit a98b713
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/relay/backend/interpreter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <tvm/relay/interpreter.h>
#include <tvm/relay/pass.h>
#include <tvm/relay/attrs/debug.h>
#include <tvm/relay/logging.h>
#include "compile_engine.h"

namespace tvm {
Expand Down
1 change: 1 addition & 0 deletions src/relay/op/nn/convolution.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ bool Conv2DRel(const Array<Type>& types,
channels = param->channels;
dilated_ksize_y = 1 + (param->kernel_size[0] - 1) * param->dilation[0];
dilated_ksize_x = 1 + (param->kernel_size[1] - 1) * param->dilation[1];

// assign result to reporter
reporter->Assign(types[1], TensorTypeNode::make(wshape, data->dtype));
} else {
Expand Down
3 changes: 3 additions & 0 deletions tests/python/relay/test_ir_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ def test_tuple_get_item():
str(get)
check_json_roundtrip(get)

def test_op():
add = op.op.get("add")
check_json_roundtrip(add)

def test_op():
add = op.op.get("add")
Expand Down

0 comments on commit a98b713

Please sign in to comment.