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:
parent
6a5694e557
commit
bff26a32c4
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue