Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
b5c96d34
Unverified
Commit
b5c96d34
authored
Mar 29, 2022
by
Umang Yadav
Committed by
GitHub
Mar 29, 2022
Browse files
Python binding for shape : Fix constructor for the shape and enable tests (#1135)
Follow up to #1128
parent
661046c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
test/py/test_shape.py
test/py/test_shape.py
+13
-2
No files found.
test/py/test_shape.py
View file @
b5c96d34
...
@@ -16,6 +16,17 @@ def test_create_shape_broadcast():
...
@@ -16,6 +16,17 @@ def test_create_shape_broadcast():
def
test_create_shape_type
():
def
test_create_shape_type
():
s
=
migraphx
.
shape
(
type
=
'uint8'
)
s
=
migraphx
.
shape
(
type
=
'int64_t'
)
assert
s
.
type_string
()
==
'uint8_type'
assert
s
.
type_string
()
==
'int64_type'
assert
s
.
type_size
()
==
8
s
=
migraphx
.
shape
(
type
=
'uint8_t'
)
assert
s
.
type_string
()
==
"uint8_type"
assert
s
.
type_size
()
==
1
assert
s
.
type_size
()
==
1
s
=
migraphx
.
shape
(
type
=
'float'
)
assert
s
.
type_size
()
==
4
if
__name__
==
"__main__"
:
test_create_shape
()
test_create_shape_broadcast
()
test_create_shape_type
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment