Skip to content

Commit

Permalink
Fix docstrings in tvm.relay.cast_like (apache#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 and trevor-m committed Jun 17, 2021
1 parent 6d631ac commit b72b71c
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 b72b71c

Please sign in to comment.