[GPU] Fix convolution unit test for onednn (#12389)

* no goiyx to bfyx convert when using onednn
This commit is contained in:
Felix Dohyun Kim 2022-08-08 18:13:33 +09:00 committed by GitHub
parent 76e78c3400
commit b9126fe6ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -2502,9 +2502,11 @@ INSTANTIATE_TEST_SUITE_P(fusings_gpu, conv_int8_asymmetric_weights, ::testing::V
class conv_int8_asymmetric_data : public ConvFusingTest {};
TEST_P(conv_int8_asymmetric_data, basic) {
auto p = GetParam();
auto weights_format = (p.weights_format == format::goiyx) ? format::bfyx : format::bfzyx;
auto weights_layout = (p.groups > 1) ? get_weights_layout(p, 1, weights_format) :
get_weights_layout(p);
layout weights_layout = get_weights_layout(p);
if (!engine.get_device_info().supports_immad) {
auto weights_format = (p.weights_format == format::goiyx) ? format::bfyx : format::bfzyx;
weights_layout = (p.groups > 1) ? get_weights_layout(p, 1, weights_format) : get_weights_layout(p);
}
create_topologies(
input_layout("input", get_input_layout(p)),
data("weights", get_mem(weights_layout)),