From 76a7ef3349c5d43f661bf1311e36565604841793 Mon Sep 17 00:00:00 2001
From: Haichen Shen <haichen@cs.washington.edu>
Date: Wed, 12 Oct 2016 22:30:27 -0700
Subject: [PATCH] fix bug for rdiv

---
 python/tvm/expr.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/tvm/expr.py b/python/tvm/expr.py
index adbf63968..b6bac8808 100644
--- a/python/tvm/expr.py
+++ b/python/tvm/expr.py
@@ -38,7 +38,7 @@ class Expr(object):
         return BinaryOpExpr(_op.div, self, other)
 
     def __rdiv__(self, other):
-        return BinaryOpExpr(_op.div, self, other)
+        return BinaryOpExpr(_op.div, other, self)
 
     def __truediv__(self, other):
         return self.__div__(other)
-- 
GitLab