From 45ae058b1a56423325003a7ddfe1329454eb81e6 Mon Sep 17 00:00:00 2001 From: WolframRhodium Date: Tue, 28 May 2024 13:12:01 +0800 Subject: [PATCH] vsmigx/vs_migraphx.cpp: fix support for flexible output --- vsmigx/vs_migraphx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vsmigx/vs_migraphx.cpp b/vsmigx/vs_migraphx.cpp index 5c544e0..f52fbbe 100644 --- a/vsmigx/vs_migraphx.cpp +++ b/vsmigx/vs_migraphx.cpp @@ -855,7 +855,7 @@ static void VS_CC vsMIGXCreate( if (lengths[0] != 1) { return set_error("batch size must be 1"); } - if (lengths[1] != 1 && lengths[1] != 3 && !d->flexible_output_prop.empty()) { + if (lengths[1] != 1 && lengths[1] != 3 && d->flexible_output_prop.empty()) { return set_error("output should have 1 or 3 channels, or enable \"flexible_output\""); } if (lengths[2] % tile_h != 0 && lengths[3] % tile_w != 0) {