Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 4 additions & 4 deletions test/py/test_array.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#####################################################################################
# The MIT License (MIT)
#
# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.
# Copyright (c) 2015-2026 Advanced Micro Devices, Inc. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -80,7 +80,7 @@ def run(p):
return p.run(params)


def test_shape(shape):
def _test_shape(shape):
data = list(range(nelements(shape)))
m = create_buffer('f', data, shape)
a = migraphx.argument(m)
Expand All @@ -90,8 +90,8 @@ def test_shape(shape):

def test_input():
if sys.version_info >= (3, 0):
test_shape([4])
test_shape([2, 3])
_test_shape([4])
_test_shape([2, 3])
else:
Comment thread
eddieliao marked this conversation as resolved.
data = list(range(4))
m = create_buffer('f', data, [4])
Expand Down
14 changes: 10 additions & 4 deletions test/py/test_save_load.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#####################################################################################
# The MIT License (MIT)
#
# Copyright (c) 2015-2025 Advanced Micro Devices, Inc. All rights reserved.
# Copyright (c) 2015-2026 Advanced Micro Devices, Inc. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand All @@ -24,7 +24,7 @@
import migraphx, array, tempfile, sys


def test_conv_relu(format):
def _test_conv_relu(format):
p1 = migraphx.parse_onnx("conv_relu_maxpool_test.onnx")
print(p1)

Expand All @@ -40,6 +40,12 @@ def test_conv_relu(format):
assert s1 == s2
assert p1.sort() == p2.sort()

def test_conv_relu_msgpack():
_test_conv_relu('msgpack')

def test_conv_relu_json():
_test_conv_relu('json')

def test_save_load_buffer():
p1 = migraphx.parse_onnx("conv_relu_maxpool_test.onnx")
print(p1)
Expand Down Expand Up @@ -76,6 +82,6 @@ def test_load_save_arg():

if __name__ == "__main__":
test_load_save_arg()
test_conv_relu('msgpack')
test_conv_relu('json')
test_conv_relu_msgpack()
test_conv_relu_json()
test_save_load_buffer()
Loading