Skip to content

Commit

Permalink
changes in response to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Lily Orth-Smith authored and Lily Orth-Smith committed Jul 13, 2020
1 parent 7c58e80 commit 408a40b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/tvm/relay/op/_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
# zeros
@register_compute("zeros")
def zeros_compute(attrs, inputs, output_type):
assert len(inputs) == 0
assert not inputs
return [topi.full(output_type.shape, output_type.dtype, 0.0)]

register_broadcast_schedule("zeros")
Expand All @@ -109,7 +109,7 @@ def zeros_like_compute(attrs, inputs, output_type):
# ones
@register_compute("ones")
def ones_compute(attrs, inputs, output_type):
assert len(inputs) == 0
assert not inputs
return [topi.full(output_type.shape, output_type.dtype, 1.0)]

register_broadcast_schedule("ones")
Expand Down

0 comments on commit 408a40b

Please sign in to comment.