Пример #1
0
 def data_format_error():
     data = paddle.randint(shape=[1, 1, 3, 3])
     indices = paddle.reshape(paddle.arange(4, 40), shape[1, 1, 3, 4])
     MaxPool2D = F.maxunpool2d(data,
                               indices,
                               kernel_size=2,
                               stride=2,
                               data_format="NHWC")
Пример #2
0
 def data_outputsize_error2():
     data = paddle.randint(shape=[1, 1, 3, 3])
     indices = paddle.reshape(paddle.arange(4, 40), shape[1, 1, 3, 4])
     MaxPool2D = F.maxunpool2d(data,
                               indices,
                               kernel_size=2,
                               stride=2,
                               output_size=[100, 100])
Пример #3
0
 def indices_value_error():
     data = paddle.randint(shape=[1, 1, 3, 3])
     indices = paddle.reshape(paddle.arange(4, 40), shape[1, 1, 3, 4])
     MaxPool2D = F.maxunpool2d(data, indices, kernel_size=2, stride=2)