Skip to content

Commit

Permalink
Relay call node definitions. (#396)
Browse files Browse the repository at this point in the history
* Relay function dahlia impls

* ws

* imports

* Update sqrt name, add a few more.

* Update batch_matmul

* Prims

* Make note of issue 401

* Use std_sqrt

* Add softmax data.
  • Loading branch information
cgyurgyik authored Feb 19, 2021
1 parent 9da2ee4 commit 3fafe12
Show file tree
Hide file tree
Showing 65 changed files with 3,434 additions and 46 deletions.
9 changes: 7 additions & 2 deletions frontends/relay/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ def emit_futil(program) -> str:
main, func_defs = visitor.visit(relay_program)
return '\n'.join((
Program(
imports=[Import("primitives/std.lib")],
imports=[
Import("primitives/std.lib"),
Import("primitives/bitnum/math.futil")
],
components=[main]
).doc(),
emit_components(func_defs)
Expand All @@ -163,4 +166,6 @@ def emit_futil(program) -> str:
import sys

relay_function = relay.fromtext(sys.stdin.read())
print(emit_futil(relay_function))
print(
emit_futil(relay_function)
)
Loading

0 comments on commit 3fafe12

Please sign in to comment.