Skip to content

Commit

Permalink
copy all attributes from broadcast_to, ones, zeros, full
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 ccb44d7 commit 5c5025d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions python/tvm/relay/_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ def __call__(self, args, attrs, type_args):
attrs = {}
if self.operator in (op.strided_slice,):
x = self.operator(*args)
elif self.operator in (op.zeros, op.ones, op.full, op.broadcast_to):
x = self.operator(*args, dtype=attrs["dtype"])
else:
x = self.operator(*args, **{k: self.convert(v) for k, v in attrs.items()})
if isinstance(x, expr.TupleWrapper):
Expand Down

0 comments on commit 5c5025d

Please sign in to comment.