correct mistake in muladd function logic (#2269)
authorSean <wonderxboy@gmail.com>
Tue, 11 Dec 2018 17:42:47 +0000 (11:42 -0600)
committerTianqi Chen <tqchen@users.noreply.github.com>
Tue, 11 Dec 2018 17:42:47 +0000 (09:42 -0800)
Doesn't make sense to have %1 = mul(%x, %y) computed but never use the result %1

docs/dev/relay_intro.rst

index d3c83590cbb83f0f23ee67d34c0460d60b1569d9..dde900a502c19e80a5e869904327c847e1f68b54 100644 (file)
@@ -54,7 +54,7 @@ shows an example of a function calling another function.
 \r
    def @muladd(%x, %y, %z) {\r
      %1 = mul(%x, %y)\r
-     %2 = add(%x, %z)\r
+     %2 = add(%1, %z)\r
      %2\r
    }\r
    def @myfunc(%x) {\r