Skip to content

Commit

Permalink
Fix docstrings in tvm.relay.cast_like (#8262)
Browse files Browse the repository at this point in the history
* Fix docstrings in tvm.relay.cast_like

* use correct formats to avoid chaos

* Fix docstrings in tvm.relay.cast_like

* use correct formats to avoid chaos
  • Loading branch information
senychen authored Jun 16, 2021
1 parent a8663d2 commit d05fdc5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/tvm/relay/op/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,15 @@ def cast(data, dtype):

def cast_like(data, dtype_like):
"""Cast input tensor to data type of another tensor.
Parameters
----------
data : relay.Expr
The input data to the operator.
dtype_like: relay.Expr
The tensor to cast to.
Returns
-------
result : relay.Expr
Expand Down

0 comments on commit d05fdc5

Please sign in to comment.