Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Relaxing type requirements for broadcast_like #17977

Merged
merged 3 commits into from
May 4, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
enhance unit test
tobecontinued committed Apr 6, 2020

Unverified

This user has not yet uploaded their public signing key.
commit feef46cb8c35685267c02c8be545be298a18e168
1 change: 1 addition & 0 deletions tests/python/unittest/test_operator.py
Original file line number Diff line number Diff line change
@@ -3127,6 +3127,7 @@ def test_broadcast_like_different_types():
y = mx.nd.array(y).astype('int32')
z = mx.nd.broadcast_like(x, y)
assert_allclose(z.asnumpy(), [[0,0],[0,0]])
assert x.dtype == z.dtype

@with_seed()
def test_flip():