结论:
np.meshgrid(a,b)是按a作为x轴信息,b为y轴信息;
torch.meshgrid(x,y)是按输入x作为y轴信息,输入y作为x轴信息.。
import torch
import numpy as np
# 通过一下代码可以生成一个网格,每一个网格点是对应的一个中心点,数值从32~224,如果是整张图的范围的话是0~256
stride = 8
w = 25
h = 25
# tensor([ 0., 8., 16., 24., 32., 40., 48., 56., 64., 72., 80., 88.,
# 96., 104., 112., 120., 128., 136., 144., 152., 160., 168., 176., 184.,
# 192.])
x_tensor = torch.arange(0, w * stride, step=stride, dtype=torch.float32)
x_np = np.arange(0, w * stride, step=stride, dtype=np.float32)
y_tensor = torch.arange(0, h * stride, step=stride, dtype=torch.float32)
y_np = np.arange(0, h * stride, step=stride, dtype=np.float32)
print(x_tensor)
print(x_np)
# 生成网格
y_tensor, x_tensor = torch.meshgrid(y_tensor, x_tensor) # 一行一行
y_np, x_np = np.meshgrid(y_np, x_np) # 一列一列
# 将矩阵转成向量
x_np = x_np.reshape(-1)
y_np = y_np.reshape(-1)
x_tensor = x_tensor.reshape(-1)
y_tensor = y_tensor.reshape(-1)
# torch.Size([625, 2])
# 网格的坐标从32~224,网格的坐标值的是中心点的坐标每一个网格长度是34
location_tensor = torch.stack((x_tensor, y_tensor), dim=1) + 32
location_np = np.stack((x_np, y_np), axis=1) + 32
print('tensor:', location_tensor.shape, '\n np:', location_np.shape)
for tensor_xy, np_xy in zip(location_tensor, location_np):
print('tensor:', tensor_xy, '\tnp:', np_xy)
打印结果:
将y_np, x_np = np.meshgrid(y_np, x_np)修改成x_np, y_np = np.meshgrid(x_np, y_np);这样两个的输出就可以是一样的了
tensor: torch.Size([625, 2])
np: (625, 2)
tensor: tensor([32., 32.]) np: [32. 32.]
tensor: tensor([40., 32.]) np: [32. 40.]
tensor: tensor([48., 32.]) np: [32. 48.]
tensor: tensor([56., 32.]) np: [32. 56.]
tensor: tensor([64., 32.]) np: [32. 64.]
tensor: tensor([72., 32.]) np: [32. 72.]
tensor: tensor([80., 32.]) np: [32. 80.]
tensor: tensor([88., 32.]) np: [32. 88.]
tensor: tensor([96., 32.]) np: [32. 96.]
tensor: tensor([104., 32.]) np: [ 32. 104.]
tensor: tensor([112., 32.]) np: [ 32. 112.]
tensor: tensor([120., 32.]) np: [ 32. 120.]
tensor: tensor([128., 32.]) np: [ 32. 128.]
tensor: tensor([136., 32.]) np: [ 32. 136.]
tensor: tensor([144., 32.]) np: [ 32. 144.]
tensor: tensor([152., 32.]) np: [ 32. 152.]
tensor: tensor([160., 32.]) np: [ 32. 160.]
tensor: tensor([168., 32.]) np: [ 32. 168.]
tensor: tensor([176., 32.]) np: [ 32. 176.]
tensor: tensor([184., 32.]) np: [ 32. 184.]
tensor: tensor([192., 32.]) np: [ 32. 192.]
tensor: tensor([200., 32.]) np: [ 32. 200.]
tensor: tensor([208., 32.]) np: [ 32. 208.]
tensor: tensor([216., 32.]) np: [ 32. 216.]
tensor: tensor([224., 32.]) np: [ 32. 224.]
tensor: tensor([32., 40.]) np: [40. 32.]
tensor: tensor([40., 40.]) np: [40. 40.]
tensor: tensor([48., 40.]) np: [40. 48.]
tensor: tensor([56., 40.]) np: [40. 56.]
tensor: tensor([64., 40.]) np: [40. 64.]
tensor: tensor([72., 40.]) np: [40. 72.]
tensor: tensor([80., 40.]) np: [40. 80.]
tensor: tensor([88., 40.]) np: [40. 88.]
tensor: tensor([96., 40.]) np: [40. 96.]
tensor: tensor([104., 40.]) np: [ 40. 104.]
tensor: tensor([112., 40.]) np: [ 40. 112.]
tensor: tensor([120., 40.]) np: [ 40. 120.]
tensor: tensor([128., 40.]) np: [ 40. 128.]
tensor: tensor([136., 40.]) np: [ 40. 136.]
tensor: tensor([144., 40.]) np: [ 40. 144.]
tensor: tensor([152., 40.]) np: [ 40. 152.]
tensor: tensor([160., 40.]) np: [ 40. 160.]
tensor: tensor([168., 40.]) np: [ 40. 168.]
tensor: tensor([176., 40.]) np: [ 40. 176.]
tensor: tensor([184., 40.]) np: [ 40. 184.]
tensor: tensor([192., 40.]) np: [ 40. 192.]
tensor: tensor([200., 40.]) np: [ 40. 200.]
tensor: tensor([208., 40.]) np: [ 40. 208.]
tensor: tensor([216., 40.]) np: [ 40. 216.]
tensor: tensor([224., 40.]) np: [ 40. 224.]
tensor: tensor([32., 48.]) np: [48. 32.]
tensor: tensor([40., 48.]) np: [48. 40.]
tensor: tensor([48., 48.]) np: [48. 48.]
tensor: tensor([56., 48.]) np: [48. 56.]
tensor: tensor([64., 48.]) np: [48. 64.]
tensor: tensor([72., 48.]) np: [48. 72.]
tensor: tensor([80., 48.]) np: [48. 80.]
tensor: tensor([88., 48.]) np: [48. 88.]
tensor: tensor([96., 48.]) np: [48. 96.]
tensor: tensor([104., 48.]) np: [ 48. 104.]
tensor: tensor([112., 48.]) np: [ 48. 112.]
tensor: tensor([120., 48.]) np: [ 48. 120.]
tensor: tensor([128., 48.]) np: [ 48. 128.]
tensor: tensor([136., 48.]) np: [ 48. 136.]
tensor: tensor([144., 48.]) np: [ 48. 144.]
tensor: tensor([152., 48.]) np: [ 48. 152.]
tensor: tensor([160., 48.]) np: [ 48. 160.]
tensor: tensor([168., 48.]) np: [ 48. 168.]
tensor: tensor([176., 48.]) np: [ 48. 176.]
tensor: tensor([184., 48.]) np: [ 48. 184.]
tensor: tensor([192., 48.]) np: [ 48. 192.]
tensor: tensor([200., 48.]) np: [ 48. 200.]
tensor: tensor([208., 48.]) np: [ 48. 208.]
tensor: tensor([216., 48.]) np: [ 48. 216.]
tensor: tensor([224., 48.]) np: [ 48. 224.]
tensor: tensor([32., 56.]) np: [56. 32.]
tensor: tensor([40., 56.]) np: [56. 40.]
tensor: tensor([48., 56.]) np: [56. 48.]
tensor: tensor([56., 56.]) np: [56. 56.]
tensor: tensor([64., 56.]) np: [56. 64.]
tensor: tensor([72., 56.]) np: [56. 72.]
tensor: tensor([80., 56.]) np: [56. 80.]
tensor: tensor([88., 56.]) np: [56. 88.]
tensor: tensor([96., 56.]) np: [56. 96.]
tensor: tensor([104., 56.]) np: [ 56. 104.]
tensor: tensor([112., 56.]) np: [ 56. 112.]
tensor: tensor([120., 56.]) np: [ 56. 120.]
tensor: tensor([128., 56.]) np: [ 56. 128.]
tensor: tensor([136., 56.]) np: [ 56. 136.]
tensor: tensor([144., 56.]) np: [ 56. 144.]
tensor: tensor([152., 56.]) np: [ 56. 152.]
tensor: tensor([160., 56.]) np: [ 56. 160.]
tensor: tensor([168., 56.]) np: [ 56. 168.]
tensor: tensor([176., 56.]) np: [ 56. 176.]
tensor: tensor([184., 56.]) np: [ 56. 184.]
tensor: tensor([192., 56.]) np: [ 56. 192.]
tensor: tensor([200., 56.]) np: [ 56. 200.]
tensor: tensor([208., 56.]) np: [ 56. 208.]
tensor: tensor([216., 56.]) np: [ 56. 216.]
tensor: tensor([224., 56.]) np: [ 56. 224.]
tensor: tensor([32., 64.]) np: [64. 32.]
tensor: tensor([40., 64.]) np: [64. 40.]
tensor: tensor([48., 64.]) np: [64. 48.]
tensor: tensor([56., 64.]) np: [64. 56.]
tensor: tensor([64., 64.]) np: [64. 64.]
tensor: tensor([72., 64.]) np: [64. 72.]
tensor: tensor([80., 64.]) np: [64. 80.]
tensor: tensor([88., 64.]) np: [64. 88.]
tensor: tensor([96., 64.]) np: [64. 96.]
tensor: tensor([104., 64.]) np: [ 64. 104.]
tensor: tensor([112., 64.]) np: [ 64. 112.]
tensor: tensor([120., 64.]) np: [ 64. 120.]
tensor: tensor([128., 64.]) np: [ 64. 128.]
tensor: tensor([136., 64.]) np: [ 64. 136.]
tensor: tensor([144., 64.]) np: [ 64. 144.]
tensor: tensor([152., 64.]) np: [ 64. 152.]
tensor: tensor([160., 64.]) np: [ 64. 160.]
tensor: tensor([168., 64.]) np: [ 64. 168.]
tensor: tensor([176., 64.]) np: [ 64. 176.]
tensor: tensor([184., 64.]) np: [ 64. 184.]
tensor: tensor([192., 64.]) np: [ 64. 192.]
tensor: tensor([200., 64.]) np: [ 64. 200.]
tensor: tensor([208., 64.]) np: [ 64. 208.]
tensor: tensor([216., 64.]) np: [ 64. 216.]
tensor: tensor([224., 64.]) np: [ 64. 224.]
tensor: tensor([32., 72.]) np: [72. 32.]
tensor: tensor([40., 72.]) np: [72. 40.]
tensor: tensor([48., 72.]) np: [72. 48.]
tensor: tensor([56., 72.]) np: [72. 56.]
tensor: tensor([64., 72.]) np: [72. 64.]
tensor: tensor([72., 72.]) np: [72. 72.]
tensor: tensor([80., 72.]) np: [72. 80.]
tensor: tensor([88., 72.]) np: [72. 88.]
tensor: tensor([96., 72.]) np: [72. 96.]
tensor: tensor([104., 72.]) np: [ 72. 104.]
tensor: tensor([112., 72.]) np: [ 72. 112.]
tensor: tensor([120., 72.]) np: [ 72. 120.]
tensor: tensor([128., 72.]) np: [ 72. 128.]
tensor: tensor([136., 72.]) np: [ 72. 136.]
tensor: tensor([144., 72.]) np: [ 72. 144.]
tensor: tensor([152., 72.]) np: [ 72. 152.]
tensor: tensor([160., 72.]) np: [ 72. 160.]
tensor: tensor([168., 72.]) np: [ 72. 168.]
tensor: tensor([176., 72.]) np: [ 72. 176.]
tensor: tensor([184., 72.]) np: [ 72. 184.]
tensor: tensor([192., 72.]) np: [ 72. 192.]
tensor: tensor([200., 72.]) np: [ 72. 200.]
tensor: tensor([208., 72.]) np: [ 72. 208.]
tensor: tensor([216., 72.]) np: [ 72. 216.]
tensor: tensor([224., 72.]) np: [ 72. 224.]
tensor: tensor([32., 80.]) np: [80. 32.]
tensor: tensor([40., 80.]) np: [80. 40.]
tensor: tensor([48., 80.]) np: [80. 48.]
tensor: tensor([56., 80.]) np: [80. 56.]
tensor: tensor([64., 80.]) np: [80. 64.]
tensor: tensor([72., 80.]) np: [80. 72.]
tensor: tensor([80., 80.]) np: [80. 80.]
tensor: tensor([88., 80.]) np: [80. 88.]
tensor: tensor([96., 80.]) np: [80. 96.]
tensor: tensor([104., 80.]) np: [ 80. 104.]
tensor: tensor([112., 80.]) np: [ 80. 112.]
tensor: tensor([120., 80.]) np: [ 80. 120.]
tensor: tensor([128., 80.]) np: [ 80. 128.]
tensor: tensor([136., 80.]) np: [ 80. 136.]
tensor: tensor([144., 80.]) np: [ 80. 144.]
tensor: tensor([152., 80.]) np: [ 80. 152.]
tensor: tensor([160., 80.]) np: [ 80. 160.]
tensor: tensor([168., 80.]) np: [ 80. 168.]
tensor: tensor([176., 80.]) np: [ 80. 176.]
tensor: tensor([184., 80.]) np: [ 80. 184.]
tensor: tensor([192., 80.]) np: [ 80. 192.]
tensor: tensor([200., 80.]) np: [ 80. 200.]
tensor: tensor([208., 80.]) np: [ 80. 208.]
tensor: tensor([216., 80.]) np: [ 80. 216.]
tensor: tensor([224., 80.]) np: [ 80. 224.]
tensor: tensor([32., 88.]) np: [88. 32.]
tensor: tensor([40., 88.]) np: [88. 40.]
tensor: tensor([48., 88.]) np: [88. 48.]
tensor: tensor([56., 88.]) np: [88. 56.]
tensor: tensor([64., 88.]) np: [88. 64.]
tensor: tensor([72., 88.]) np: [88. 72.]
tensor: tensor([80., 88.]) np: [88. 80.]
tensor: tensor([88., 88.]) np: [88. 88.]
tensor: tensor([96., 88.]) np: [88. 96.]
tensor: tensor([104., 88.]) np: [ 88. 104.]
tensor: tensor([112., 88.]) np: [ 88. 112.]
tensor: tensor([120., 88.]) np: [ 88. 120.]
tensor: tensor([128., 88.]) np: [ 88. 128.]
tensor: tensor([136., 88.]) np: [ 88. 136.]
tensor: tensor([144., 88.]) np: [ 88. 144.]
tensor: tensor([152., 88.]) np: [ 88. 152.]
tensor: tensor([160., 88.]) np: [ 88. 160.]
tensor: tensor([168., 88.]) np: [ 88. 168.]
tensor: tensor([176., 88.]) np: [ 88. 176.]
tensor: tensor([184., 88.]) np: [ 88. 184.]
tensor: tensor([192., 88.]) np: [ 88. 192.]
tensor: tensor([200., 88.]) np: [ 88. 200.]
tensor: tensor([208., 88.]) np: [ 88. 208.]
tensor: tensor([216., 88.]) np: [ 88. 216.]
tensor: tensor([224., 88.]) np: [ 88. 224.]
tensor: tensor([32., 96.]) np: [96. 32.]
tensor: tensor([40., 96.]) np: [96. 40.]
tensor: tensor([48., 96.]) np: [96. 48.]
tensor: tensor([56., 96.]) np: [96. 56.]
tensor: tensor([64., 96.]) np: [96. 64.]
tensor: tensor([72., 96.]) np: [96. 72.]
tensor: tensor([80., 96.]) np: [96. 80.]
tensor: tensor([88., 96.]) np: [96. 88.]
tensor: tensor([96., 96.]) np: [96. 96.]
tensor: tensor([104., 96.]) np: [ 96. 104.]
tensor: tensor([112., 96.]) np: [ 96. 112.]
tensor: tensor([120., 96.]) np: [ 96. 120.]
tensor: tensor([128., 96.]) np: [ 96. 128.]
tensor: tensor([136., 96.]) np: [ 96. 136.]
tensor: tensor([144., 96.]) np: [ 96. 144.]
tensor: tensor([152., 96.]) np: [ 96. 152.]
tensor: tensor([160., 96.]) np: [ 96. 160.]
tensor: tensor([168., 96.]) np: [ 96. 168.]
tensor: tensor([176., 96.]) np: [ 96. 176.]
tensor: tensor([184., 96.]) np: [ 96. 184.]
tensor: tensor([192., 96.]) np: [ 96. 192.]
tensor: tensor([200., 96.]) np: [ 96. 200.]
tensor: tensor([208., 96.]) np: [ 96. 208.]
tensor: tensor([216., 96.]) np: [ 96. 216.]
tensor: tensor([224., 96.]) np: [ 96. 224.]
tensor: tensor([ 32., 104.]) np: [104. 32.]
tensor: tensor([ 40., 104.]) np: [104. 40.]
tensor: tensor([ 48., 104.]) np: [104. 48.]
tensor: tensor([ 56., 104.]) np: [104. 56.]
tensor: tensor([ 64., 104.]) np: [104. 64.]
tensor: tensor([ 72., 104.]) np: [104. 72.]
tensor: tensor([ 80., 104.]) np: [104. 80.]
tensor: tensor([ 88., 104.]) np: [104. 88.]
tensor: tensor([ 96., 104.]) np: [104. 96.]
tensor: tensor([104., 104.]) np: [104. 104.]
tensor: tensor([112., 104.]) np: [104. 112.]
tensor: tensor([120., 104.]) np: [104. 120.]
tensor: tensor([128., 104.]) np: [104. 128.]
tensor: tensor([136., 104.]) np: [104. 136.]
tensor: tensor([144., 104.]) np: [104. 144.]
tensor: tensor([152., 104.]) np: [104. 152.]
tensor: tensor([160., 104.]) np: [104. 160.]
tensor: tensor([168., 104.]) np: [104. 168.]
tensor: tensor([176., 104.]) np: [104. 176.]
tensor: tensor([184., 104.]) np: [104. 184.]
tensor: tensor([192., 104.]) np: [104. 192.]
tensor: tensor([200., 104.]) np: [104. 200.]
tensor: tensor([208., 104.]) np: [104. 208.]
tensor: tensor([216., 104.]) np: [104. 216.]
tensor: tensor([224., 104.]) np: [104. 224.]
tensor: tensor([ 32., 112.]) np: [112. 32.]
tensor: tensor([ 40., 112.]) np: [112. 40.]
tensor: tensor([ 48., 112.]) np: [112. 48.]
tensor: tensor([ 56., 112.]) np: [112. 56.]
tensor: tensor([ 64., 112.]) np: [112. 64.]
tensor: tensor([ 72., 112.]) np: [112. 72.]
tensor: tensor([ 80., 112.]) np: [112. 80.]
tensor: tensor([ 88., 112.]) np: [112. 88.]
tensor: tensor([ 96., 112.]) np: [112. 96.]
tensor: tensor([104., 112.]) np: [112. 104.]
tensor: tensor([112., 112.]) np: [112. 112.]
tensor: tensor([120., 112.]) np: [112. 120.]
tensor: tensor([128., 112.]) np: [112. 128.]
tensor: tensor([136., 112.]) np: [112. 136.]
tensor: tensor([144., 112.]) np: [112. 144.]
tensor: tensor([152., 112.]) np: [112. 152.]
tensor: tensor([160., 112.]) np: [112. 160.]
tensor: tensor([168., 112.]) np: [112. 168.]
tensor: tensor([176., 112.]) np: [112. 176.]
tensor: tensor([184., 112.]) np: [112. 184.]
tensor: tensor([192., 112.]) np: [112. 192.]
tensor: tensor([200., 112.]) np: [112. 200.]
tensor: tensor([208., 112.]) np: [112. 208.]
tensor: tensor([216., 112.]) np: [112. 216.]
tensor: tensor([224., 112.]) np: [112. 224.]
tensor: tensor([ 32., 120.]) np: [120. 32.]
tensor: tensor([ 40., 120.]) np: [120. 40.]
tensor: tensor([ 48., 120.]) np: [120. 48.]
tensor: tensor([ 56., 120.]) np: [120. 56.]
tensor: tensor([ 64., 120.]) np: [120. 64.]
tensor: tensor([ 72., 120.]) np: [120. 72.]
tensor: tensor([ 80., 120.]) np: [120. 80.]
tensor: tensor([ 88., 120.]) np: [120. 88.]
tensor: tensor([ 96., 120.]) np: [120. 96.]
tensor: tensor([104., 120.]) np: [120. 104.]
tensor: tensor([112., 120.]) np: [120. 112.]
tensor: tensor([120., 120.]) np: [120. 120.]
tensor: tensor([128., 120.]) np: [120. 128.]
tensor: tensor([136., 120.]) np: [120. 136.]
tensor: tensor([144., 120.]) np: [120. 144.]
tensor: tensor([152., 120.]) np: [120. 152.]
tensor: tensor([160., 120.]) np: [120. 160.]
tensor: tensor([168., 120.]) np: [120. 168.]
tensor: tensor([176., 120.]) np: [120. 176.]
tensor: tensor([184., 120.]) np: [120. 184.]
tensor: tensor([192., 120.]) np: [120. 192.]
tensor: tensor([200., 120.]) np: [120. 200.]
tensor: tensor([208., 120.]) np: [120. 208.]
tensor: tensor([216., 120.]) np: [120. 216.]
tensor: tensor([224., 120.]) np: [120. 224.]
tensor: tensor([ 32., 128.]) np: [128. 32.]
tensor: tensor([ 40., 128.]) np: [128. 40.]
tensor: tensor([ 48., 128.]) np: [128. 48.]
tensor: tensor([ 56., 128.]) np: [128. 56.]
tensor: tensor([ 64., 128.]) np: [128. 64.]
tensor: tensor([ 72., 128.]) np: [128. 72.]
tensor: tensor([ 80., 128.]) np: [128. 80.]
tensor: tensor([ 88., 128.]) np: [128. 88.]
tensor: tensor([ 96., 128.]) np: [128. 96.]
tensor: tensor([104., 128.]) np: [128. 104.]
tensor: tensor([112., 128.]) np: [128. 112.]
tensor: tensor([120., 128.]) np: [128. 120.]
tensor: tensor([128., 128.]) np: [128. 128.]
tensor: tensor([136., 128.]) np: [128. 136.]
tensor: tensor([144., 128.]) np: [128. 144.]
tensor: tensor([152., 128.]) np: [128. 152.]
tensor: tensor([160., 128.]) np: [128. 160.]
tensor: tensor([168., 128.]) np: [128. 168.]
tensor: tensor([176., 128.]) np: [128. 176.]
tensor: tensor([184., 128.]) np: [128. 184.]
tensor: tensor([192., 128.]) np: [128. 192.]
tensor: tensor([200., 128.]) np: [128. 200.]
tensor: tensor([208., 128.]) np: [128. 208.]
tensor: tensor([216., 128.]) np: [128. 216.]
tensor: tensor([224., 128.]) np: [128. 224.]
tensor: tensor([ 32., 136.]) np: [136. 32.]
tensor: tensor([ 40., 136.]) np: [136. 40.]
tensor: tensor([ 48., 136.]) np: [136. 48.]
tensor: tensor([ 56., 136.]) np: [136. 56.]
tensor: tensor([ 64., 136.]) np: [136. 64.]
tensor: tensor([ 72., 136.]) np: [136. 72.]
tensor: tensor([ 80., 136.]) np: [136. 80.]
tensor: tensor([ 88., 136.]) np: [136. 88.]
tensor: tensor([ 96., 136.]) np: [136. 96.]
tensor: tensor([104., 136.]) np: [136. 104.]
tensor: tensor([112., 136.]) np: [136. 112.]
tensor: tensor([120., 136.]) np: [136. 120.]
tensor: tensor([128., 136.]) np: [136. 128.]
tensor: tensor([136., 136.]) np: [136. 136.]
tensor: tensor([144., 136.]) np: [136. 144.]
tensor: tensor([152., 136.]) np: [136. 152.]
tensor: tensor([160., 136.]) np: [136. 160.]
tensor: tensor([168., 136.]) np: [136. 168.]
tensor: tensor([176., 136.]) np: [136. 176.]
tensor: tensor([184., 136.]) np: [136. 184.]
tensor: tensor([192., 136.]) np: [136. 192.]
tensor: tensor([200., 136.]) np: [136. 200.]
tensor: tensor([208., 136.]) np: [136. 208.]
tensor: tensor([216., 136.]) np: [136. 216.]
tensor: tensor([224., 136.]) np: [136. 224.]
tensor: tensor([ 32., 144.]) np: [144. 32.]
tensor: tensor([ 40., 144.]) np: [144. 40.]
tensor: tensor([ 48., 144.]) np: [144. 48.]
tensor: tensor([ 56., 144.]) np: [144. 56.]
tensor: tensor([ 64., 144.]) np: [144. 64.]
tensor: tensor([ 72., 144.]) np: [144. 72.]
tensor: tensor([ 80., 144.]) np: [144. 80.]
tensor: tensor([ 88., 144.]) np: [144. 88.]
tensor: tensor([ 96., 144.]) np: [144. 96.]
tensor: tensor([104., 144.]) np: [144. 104.]
tensor: tensor([112., 144.]) np: [144. 112.]
tensor: tensor([120., 144.]) np: [144. 120.]
tensor: tensor([128., 144.]) np: [144. 128.]
tensor: tensor([136., 144.]) np: [144. 136.]
tensor: tensor([144., 144.]) np: [144. 144.]
tensor: tensor([152., 144.]) np: [144. 152.]
tensor: tensor([160., 144.]) np: [144. 160.]
tensor: tensor([168., 144.]) np: [144. 168.]
tensor: tensor([176., 144.]) np: [144. 176.]
tensor: tensor([184., 144.]) np: [144. 184.]
tensor: tensor([192., 144.]) np: [144. 192.]
tensor: tensor([200., 144.]) np: [144. 200.]
tensor: tensor([208., 144.]) np: [144. 208.]
tensor: tensor([216., 144.]) np: [144. 216.]
tensor: tensor([224., 144.]) np: [144. 224.]
tensor: tensor([ 32., 152.]) np: [152. 32.]
tensor: tensor([ 40., 152.]) np: [152. 40.]
tensor: tensor([ 48., 152.]) np: [152. 48.]
tensor: tensor([ 56., 152.]) np: [152. 56.]
tensor: tensor([ 64., 152.]) np: [152. 64.]
tensor: tensor([ 72., 152.]) np: [152. 72.]
tensor: tensor([ 80., 152.]) np: [152. 80.]
tensor: tensor([ 88., 152.]) np: [152. 88.]
tensor: tensor([ 96., 152.]) np: [152. 96.]
tensor: tensor([104., 152.]) np: [152. 104.]
tensor: tensor([112., 152.]) np: [152. 112.]
tensor: tensor([120., 152.]) np: [152. 120.]
tensor: tensor([128., 152.]) np: [152. 128.]
tensor: tensor([136., 152.]) np: [152. 136.]
tensor: tensor([144., 152.]) np: [152. 144.]
tensor: tensor([152., 152.]) np: [152. 152.]
tensor: tensor([160., 152.]) np: [152. 160.]
tensor: tensor([168., 152.]) np: [152. 168.]
tensor: tensor([176., 152.]) np: [152. 176.]
tensor: tensor([184., 152.]) np: [152. 184.]
tensor: tensor([192., 152.]) np: [152. 192.]
tensor: tensor([200., 152.]) np: [152. 200.]
tensor: tensor([208., 152.]) np: [152. 208.]
tensor: tensor([216., 152.]) np: [152. 216.]
tensor: tensor([224., 152.]) np: [152. 224.]
tensor: tensor([ 32., 160.]) np: [160. 32.]
tensor: tensor([ 40., 160.]) np: [160. 40.]
tensor: tensor([ 48., 160.]) np: [160. 48.]
tensor: tensor([ 56., 160.]) np: [160. 56.]
tensor: tensor([ 64., 160.]) np: [160. 64.]
tensor: tensor([ 72., 160.]) np: [160. 72.]
tensor: tensor([ 80., 160.]) np: [160. 80.]
tensor: tensor([ 88., 160.]) np: [160. 88.]
tensor: tensor([ 96., 160.]) np: [160. 96.]
tensor: tensor([104., 160.]) np: [160. 104.]
tensor: tensor([112., 160.]) np: [160. 112.]
tensor: tensor([120., 160.]) np: [160. 120.]
tensor: tensor([128., 160.]) np: [160. 128.]
tensor: tensor([136., 160.]) np: [160. 136.]
tensor: tensor([144., 160.]) np: [160. 144.]
tensor: tensor([152., 160.]) np: [160. 152.]
tensor: tensor([160., 160.]) np: [160. 160.]
tensor: tensor([168., 160.]) np: [160. 168.]
tensor: tensor([176., 160.]) np: [160. 176.]
tensor: tensor([184., 160.]) np: [160. 184.]
tensor: tensor([192., 160.]) np: [160. 192.]
tensor: tensor([200., 160.]) np: [160. 200.]
tensor: tensor([208., 160.]) np: [160. 208.]
tensor: tensor([216., 160.]) np: [160. 216.]
tensor: tensor([224., 160.]) np: [160. 224.]
tensor: tensor([ 32., 168.]) np: [168. 32.]
tensor: tensor([ 40., 168.]) np: [168. 40.]
tensor: tensor([ 48., 168.]) np: [168. 48.]
tensor: tensor([ 56., 168.]) np: [168. 56.]
tensor: tensor([ 64., 168.]) np: [168. 64.]
tensor: tensor([ 72., 168.]) np: [168. 72.]
tensor: tensor([ 80., 168.]) np: [168. 80.]
tensor: tensor([ 88., 168.]) np: [168. 88.]
tensor: tensor([ 96., 168.]) np: [168. 96.]
tensor: tensor([104., 168.]) np: [168. 104.]
tensor: tensor([112., 168.]) np: [168. 112.]
tensor: tensor([120., 168.]) np: [168. 120.]
tensor: tensor([128., 168.]) np: [168. 128.]
tensor: tensor([136., 168.]) np: [168. 136.]
tensor: tensor([144., 168.]) np: [168. 144.]
tensor: tensor([152., 168.]) np: [168. 152.]
tensor: tensor([160., 168.]) np: [168. 160.]
tensor: tensor([168., 168.]) np: [168. 168.]
tensor: tensor([176., 168.]) np: [168. 176.]
tensor: tensor([184., 168.]) np: [168. 184.]
tensor: tensor([192., 168.]) np: [168. 192.]
tensor: tensor([200., 168.]) np: [168. 200.]
tensor: tensor([208., 168.]) np: [168. 208.]
tensor: tensor([216., 168.]) np: [168. 216.]
tensor: tensor([224., 168.]) np: [168. 224.]
tensor: tensor([ 32., 176.]) np: [176. 32.]
tensor: tensor([ 40., 176.]) np: [176. 40.]
tensor: tensor([ 48., 176.]) np: [176. 48.]
tensor: tensor([ 56., 176.]) np: [176. 56.]
tensor: tensor([ 64., 176.]) np: [176. 64.]
tensor: tensor([ 72., 176.]) np: [176. 72.]
tensor: tensor([ 80., 176.]) np: [176. 80.]
tensor: tensor([ 88., 176.]) np: [176. 88.]
tensor: tensor([ 96., 176.]) np: [176. 96.]
tensor: tensor([104., 176.]) np: [176. 104.]
tensor: tensor([112., 176.]) np: [176. 112.]
tensor: tensor([120., 176.]) np: [176. 120.]
tensor: tensor([128., 176.]) np: [176. 128.]
tensor: tensor([136., 176.]) np: [176. 136.]
tensor: tensor([144., 176.]) np: [176. 144.]
tensor: tensor([152., 176.]) np: [176. 152.]
tensor: tensor([160., 176.]) np: [176. 160.]
tensor: tensor([168., 176.]) np: [176. 168.]
tensor: tensor([176., 176.]) np: [176. 176.]
tensor: tensor([184., 176.]) np: [176. 184.]
tensor: tensor([192., 176.]) np: [176. 192.]
tensor: tensor([200., 176.]) np: [176. 200.]
tensor: tensor([208., 176.]) np: [176. 208.]
tensor: tensor([216., 176.]) np: [176. 216.]
tensor: tensor([224., 176.]) np: [176. 224.]
tensor: tensor([ 32., 184.]) np: [184. 32.]
tensor: tensor([ 40., 184.]) np: [184. 40.]
tensor: tensor([ 48., 184.]) np: [184. 48.]
tensor: tensor([ 56., 184.]) np: [184. 56.]
tensor: tensor([ 64., 184.]) np: [184. 64.]
tensor: tensor([ 72., 184.]) np: [184. 72.]
tensor: tensor([ 80., 184.]) np: [184. 80.]
tensor: tensor([ 88., 184.]) np: [184. 88.]
tensor: tensor([ 96., 184.]) np: [184. 96.]
tensor: tensor([104., 184.]) np: [184. 104.]
tensor: tensor([112., 184.]) np: [184. 112.]
tensor: tensor([120., 184.]) np: [184. 120.]
tensor: tensor([128., 184.]) np: [184. 128.]
tensor: tensor([136., 184.]) np: [184. 136.]
tensor: tensor([144., 184.]) np: [184. 144.]
tensor: tensor([152., 184.]) np: [184. 152.]
tensor: tensor([160., 184.]) np: [184. 160.]
tensor: tensor([168., 184.]) np: [184. 168.]
tensor: tensor([176., 184.]) np: [184. 176.]
tensor: tensor([184., 184.]) np: [184. 184.]
tensor: tensor([192., 184.]) np: [184. 192.]
tensor: tensor([200., 184.]) np: [184. 200.]
tensor: tensor([208., 184.]) np: [184. 208.]
tensor: tensor([216., 184.]) np: [184. 216.]
tensor: tensor([224., 184.]) np: [184. 224.]
tensor: tensor([ 32., 192.]) np: [192. 32.]
tensor: tensor([ 40., 192.]) np: [192. 40.]
tensor: tensor([ 48., 192.]) np: [192. 48.]
tensor: tensor([ 56., 192.]) np: [192. 56.]
tensor: tensor([ 64., 192.]) np: [192. 64.]
tensor: tensor([ 72., 192.]) np: [192. 72.]
tensor: tensor([ 80., 192.]) np: [192. 80.]
tensor: tensor([ 88., 192.]) np: [192. 88.]
tensor: tensor([ 96., 192.]) np: [192. 96.]
tensor: tensor([104., 192.]) np: [192. 104.]
tensor: tensor([112., 192.]) np: [192. 112.]
tensor: tensor([120., 192.]) np: [192. 120.]
tensor: tensor([128., 192.]) np: [192. 128.]
tensor: tensor([136., 192.]) np: [192. 136.]
tensor: tensor([144., 192.]) np: [192. 144.]
tensor: tensor([152., 192.]) np: [192. 152.]
tensor: tensor([160., 192.]) np: [192. 160.]
tensor: tensor([168., 192.]) np: [192. 168.]
tensor: tensor([176., 192.]) np: [192. 176.]
tensor: tensor([184., 192.]) np: [192. 184.]
tensor: tensor([192., 192.]) np: [192. 192.]
tensor: tensor([200., 192.]) np: [192. 200.]
tensor: tensor([208., 192.]) np: [192. 208.]
tensor: tensor([216., 192.]) np: [192. 216.]
tensor: tensor([224., 192.]) np: [192. 224.]
tensor: tensor([ 32., 200.]) np: [200. 32.]
tensor: tensor([ 40., 200.]) np: [200. 40.]
tensor: tensor([ 48., 200.]) np: [200. 48.]
tensor: tensor([ 56., 200.]) np: [200. 56.]
tensor: tensor([ 64., 200.]) np: [200. 64.]
tensor: tensor([ 72., 200.]) np: [200. 72.]
tensor: tensor([ 80., 200.]) np: [200. 80.]
tensor: tensor([ 88., 200.]) np: [200. 88.]
tensor: tensor([ 96., 200.]) np: [200. 96.]
tensor: tensor([104., 200.]) np: [200. 104.]
tensor: tensor([112., 200.]) np: [200. 112.]
tensor: tensor([120., 200.]) np: [200. 120.]
tensor: tensor([128., 200.]) np: [200. 128.]
tensor: tensor([136., 200.]) np: [200. 136.]
tensor: tensor([144., 200.]) np: [200. 144.]
tensor: tensor([152., 200.]) np: [200. 152.]
tensor: tensor([160., 200.]) np: [200. 160.]
tensor: tensor([168., 200.]) np: [200. 168.]
tensor: tensor([176., 200.]) np: [200. 176.]
tensor: tensor([184., 200.]) np: [200. 184.]
tensor: tensor([192., 200.]) np: [200. 192.]
tensor: tensor([200., 200.]) np: [200. 200.]
tensor: tensor([208., 200.]) np: [200. 208.]
tensor: tensor([216., 200.]) np: [200. 216.]
tensor: tensor([224., 200.]) np: [200. 224.]
tensor: tensor([ 32., 208.]) np: [208. 32.]
tensor: tensor([ 40., 208.]) np: [208. 40.]
tensor: tensor([ 48., 208.]) np: [208. 48.]
tensor: tensor([ 56., 208.]) np: [208. 56.]
tensor: tensor([ 64., 208.]) np: [208. 64.]
tensor: tensor([ 72., 208.]) np: [208. 72.]
tensor: tensor([ 80., 208.]) np: [208. 80.]
tensor: tensor([ 88., 208.]) np: [208. 88.]
tensor: tensor([ 96., 208.]) np: [208. 96.]
tensor: tensor([104., 208.]) np: [208. 104.]
tensor: tensor([112., 208.]) np: [208. 112.]
tensor: tensor([120., 208.]) np: [208. 120.]
tensor: tensor([128., 208.]) np: [208. 128.]
tensor: tensor([136., 208.]) np: [208. 136.]
tensor: tensor([144., 208.]) np: [208. 144.]
tensor: tensor([152., 208.]) np: [208. 152.]
tensor: tensor([160., 208.]) np: [208. 160.]
tensor: tensor([168., 208.]) np: [208. 168.]
tensor: tensor([176., 208.]) np: [208. 176.]
tensor: tensor([184., 208.]) np: [208. 184.]
tensor: tensor([192., 208.]) np: [208. 192.]
tensor: tensor([200., 208.]) np: [208. 200.]
tensor: tensor([208., 208.]) np: [208. 208.]
tensor: tensor([216., 208.]) np: [208. 216.]
tensor: tensor([224., 208.]) np: [208. 224.]
tensor: tensor([ 32., 216.]) np: [216. 32.]
tensor: tensor([ 40., 216.]) np: [216. 40.]
tensor: tensor([ 48., 216.]) np: [216. 48.]
tensor: tensor([ 56., 216.]) np: [216. 56.]
tensor: tensor([ 64., 216.]) np: [216. 64.]
tensor: tensor([ 72., 216.]) np: [216. 72.]
tensor: tensor([ 80., 216.]) np: [216. 80.]
tensor: tensor([ 88., 216.]) np: [216. 88.]
tensor: tensor([ 96., 216.]) np: [216. 96.]
tensor: tensor([104., 216.]) np: [216. 104.]
tensor: tensor([112., 216.]) np: [216. 112.]
tensor: tensor([120., 216.]) np: [216. 120.]
tensor: tensor([128., 216.]) np: [216. 128.]
tensor: tensor([136., 216.]) np: [216. 136.]
tensor: tensor([144., 216.]) np: [216. 144.]
tensor: tensor([152., 216.]) np: [216. 152.]
tensor: tensor([160., 216.]) np: [216. 160.]
tensor: tensor([168., 216.]) np: [216. 168.]
tensor: tensor([176., 216.]) np: [216. 176.]
tensor: tensor([184., 216.]) np: [216. 184.]
tensor: tensor([192., 216.]) np: [216. 192.]
tensor: tensor([200., 216.]) np: [216. 200.]
tensor: tensor([208., 216.]) np: [216. 208.]
tensor: tensor([216., 216.]) np: [216. 216.]
tensor: tensor([224., 216.]) np: [216. 224.]
tensor: tensor([ 32., 224.]) np: [224. 32.]
tensor: tensor([ 40., 224.]) np: [224. 40.]
tensor: tensor([ 48., 224.]) np: [224. 48.]
tensor: tensor([ 56., 224.]) np: [224. 56.]
tensor: tensor([ 64., 224.]) np: [224. 64.]
tensor: tensor([ 72., 224.]) np: [224. 72.]
tensor: tensor([ 80., 224.]) np: [224. 80.]
tensor: tensor([ 88., 224.]) np: [224. 88.]
tensor: tensor([ 96., 224.]) np: [224. 96.]
tensor: tensor([104., 224.]) np: [224. 104.]
tensor: tensor([112., 224.]) np: [224. 112.]
tensor: tensor([120., 224.]) np: [224. 120.]
tensor: tensor([128., 224.]) np: [224. 128.]
tensor: tensor([136., 224.]) np: [224. 136.]
tensor: tensor([144., 224.]) np: [224. 144.]
tensor: tensor([152., 224.]) np: [224. 152.]
tensor: tensor([160., 224.]) np: [224. 160.]
tensor: tensor([168., 224.]) np: [224. 168.]
tensor: tensor([176., 224.]) np: [224. 176.]
tensor: tensor([184., 224.]) np: [224. 184.]
tensor: tensor([192., 224.]) np: [224. 192.]
tensor: tensor([200., 224.]) np: [224. 200.]
tensor: tensor([208., 224.]) np: [224. 208.]
tensor: tensor([216., 224.]) np: [224. 216.]
tensor: tensor([224., 224.]) np: [224. 224.]