Skip to content

Commit 178c127

Browse files
authored
Delete test case for -1 in ReshapeLayer
Removed test case for ReshapeLayer with -1 in targetDim.
1 parent 1068bec commit 178c127

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

code/nnv/tests/nn/layers/ReshapeLayer/test_ReshapeLayer.m

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,6 @@
4242
% Should reshape to [2 2 2]
4343
assert(all(size(output) == [2 2 2]), 'ReshapeLayer 3D evaluate failed');
4444

45-
%% Test 6: ReshapeLayer evaluate - with -1 in targetDim
46-
targetDim = [[], 4];
47-
L = ReshapeLayer('reshape_auto', targetDim);
48-
49-
% Create input
50-
input = [1 2 3 4; 5 6 7 8];
51-
output = L.evaluate(input);
52-
53-
% -1 should be replaced with 1
54-
assert(size(output, 1) == 1 || size(output, 2) == 4, 'ReshapeLayer with -1 failed');
55-
5645
%% Test 7: ReshapeLayer reach with ImageStar
5746
targetDim = [4, 4, 1, 1];
5847
L = ReshapeLayer('reshape_reach', targetDim);

0 commit comments

Comments
 (0)