Skip to content

Commit

Permalink
[DOCS] Added casting to hybrid script doc and fixed pass infra doc (a…
Browse files Browse the repository at this point in the history
…pache#6174)

* updated hybridscript docs and pass infra docs

* forgot uint16
  • Loading branch information
Lily Orth-Smith authored and Trevor Morris committed Sep 2, 2020
1 parent c518a94 commit 8cea9a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docs/dev/hybrid_script.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,10 @@ Math Intrinsics
So far, these math intrinsics, ``log``, ``exp``, ``sigmoid``, ``tanh``, ``power``, and ``popcount``, are supported.
Math intrinsics will be imported by the decorator. Most of the intrinsics are borrowed by library implementation
except ``popcount`` and ``sigmoid``. I implemented them manually.


Casting
~~~~~~~

You can cast values by using the keywords ``uint8``, ``uint16`` ``uint32``, ``uint64``, ``int8``, ``int16``, ``int32``, ``int64``,
``float16``, ``float32``, ``float64``.
2 changes: 1 addition & 1 deletion docs/dev/relay_pass_infra.rst
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ sequential pass example could be like the following to enable IR dumping for
seq = tvm.transform.Sequential([
relay.transform.InferType(),
relay.transform.FoldConstant(),
transform.PrintIR(),
ir.transform.PrintIR(),
relay.transform.EliminateCommonSubexpr(),
relay.transform.AlterOpLayout()
])
Expand Down

0 comments on commit 8cea9a6

Please sign in to comment.