From f6d37d1432be4ad0b1818ff3e1c2fc98304a1d2b Mon Sep 17 00:00:00 2001 From: charlie Date: Thu, 15 Feb 2024 13:36:52 -0600 Subject: [PATCH] Remove same dynamic output shapes check --- test/verify/run_verify.cpp | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/test/verify/run_verify.cpp b/test/verify/run_verify.cpp index aa90e48aa60..e7fdd535fcc 100644 --- a/test/verify/run_verify.cpp +++ b/test/verify/run_verify.cpp @@ -88,16 +88,10 @@ inline void compile_check(migraphx::program& p, for(std::size_t i = 0; i < num; ++i) { auto output_shape = p.get_output_shapes()[i]; - if(output_shape.dynamic() and shapes[i].dynamic()) - { - if(output_shape.dyn_dims() != shapes[i].dyn_dims()) - { - std::cout << ss.str() << std::endl; - throw std::runtime_error("Compiling program with " + name + - " alters its dynamic output dimensions"); - } - } - else if(not(output_shape.dynamic() or shapes[i].dynamic())) + // for static output shapes check that the intial parsed shapes are + // the same as the ones after compiling + // no check for dynamic shapes because the shapes can change after compiling + if(not output_shape.dynamic() and not shapes[i].dynamic()) { if(output_shape.lens() != shapes[i].lens()) { @@ -106,13 +100,6 @@ inline void compile_check(migraphx::program& p, " alters its static output dimensions"); } } - else - { - std::cout << ss.str() << std::endl; - throw std::runtime_error( - "Compiling program with " + name + - " alters its output dimensions (static shape vs dynamic shape)"); - } } if(t.name() != "ref") verify_load_save(p);