C1_W3_Assignment get_sub_volume() - Assertion Error

Hi,
I’m getting 2 Tests passed and 1 Tests failed. Not able to figure out where. The output:
Extracting (2, 2, 2) sub-volume

Error: Wrong output.

Sampled Image:
z = 0
[[0. 0.]
[0. 0.]]
z = 1
[[0. 0.]
[0. 1.]]

Sampled Label:
class = 0
z = 0
[[0. 0.]
[0. 0.]]
z = 1
[[1. 1.]
[1. 1.]]
class = 1
z = 0
[[0. 0.]
[0. 0.]]
z = 1
[[0. 0.]
[0. 0.]]
2 Tests passed
1 Tests failed

Please help, appreciate the support. Thanks.

Hi @slnarayan,

The output shows that your code is not quite correct, but I can’t know the mistake you made unless I see your code. Please message me your code privately so that I can have a look at it.

Regards,
Samuel

Thanks Samuel, I’ve sent you the code snippet privately.

Regards
Laks.