fix size compute bug in lrn (#626)

Signed-off-by: Chen <jack.chen@verisilicon.com>
Co-authored-by: Chen <jack.chen@verisilicon.com>
This commit is contained in:
chxin66 2023-08-07 13:20:35 +08:00 committed by GitHub
parent 6a5694e557
commit bff26a32c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ TEST(localresponsenormalization, axis_0_shape_6_1_1_1_float) {
in_data.size() * sizeof(float)));
int radius = 2;
int size = radius * 2;
int size = radius * 2 + 1;
float alpha = 4.0, beta = 0.5, bias = 9.0;
auto op = graph->CreateOperation<tim::vx::ops::LocalResponseNormalization>(
size, alpha, beta, bias, 0);
@ -88,7 +88,7 @@ TEST(localresponsenormalization, axis_1_shape_2_6_float) {
in_data.size() * sizeof(float)));
int radius = 2;
int size = radius * 2;
int size = radius * 2 + 1;
float alpha = 4.0, beta = 0.5, bias = 9.0;
auto op = graph->CreateOperation<tim::vx::ops::LocalResponseNormalization>(
size, alpha, beta, bias, 1);