• Home
  • Raw
  • Download

Lines Matching refs:reshape

40     col = col.reshape(-1, pool_h * pool_w)
43 out = out.reshape((num, out_h, out_w, channel)).transpose(0, 3, 1, 2)
113 x = x.reshape(batch_num, -1)
118 return out.reshape(*input_shape), np.array(scale), np.array(shift), running_mean, running_var
126 x = x.reshape(batch_num, -1)
147 dy = dy.reshape(batch_size, -1)
151 dx = dx.reshape(*input_shape)
189 col = col.reshape(batch_num, out_h, out_w, channel, filter_h, filter_w) \
276 col_w = np.reshape(weight, (filter_num, -1)).T
278 out = out.reshape((batch_num, out_h, out_w, -1)).transpose(0, 3, 1, 2)
287 dout = dout.transpose(0, 2, 3, 1).reshape(-1, filter_num)
290 dw = dw.transpose(1, 0).reshape((filter_num, channel, filter_height, filter_width))
297 dout = dout.transpose(0, 2, 3, 1).reshape(-1, filter_num)
298 col_w = weight.reshape(filter_num, -1).T
327 return x.reshape(1, -1)
340 return x.reshape(x.shape[0], -1)
345 dout = np.reshape(dout, x)
400 col = col.transpose(0, 4, 5, 1, 2, 3).reshape(batch_num * out_h * out_w, -1)
430 col = col.reshape(-1, pool_h * pool_w)
433 out = out.reshape((num, out_h, out_w, channel)).transpose(0, 3, 1, 2)
444 col = col.reshape(-1, pool_h * pool_w)
447 dmax = dmax.reshape(dout.shape + (pool_size,))
448 dcol = dmax.reshape(dmax.shape[0] * dmax.shape[1] * dmax.shape[2], -1)
459 dmax = dmax.reshape(dout.shape + (pool_size,))
460 dcol = dmax.reshape(dmax.shape[0] * dmax.shape[1] * dmax.shape[2], -1)
472 col = col.reshape(-1, pool_h * pool_w)
475 out = out.reshape((num, out_h, out_w, channel)).transpose(0, 3, 1, 2)
476 out_argmax = out_argmax.reshape((num, out_h, out_w, channel)).transpose(0, 3, 1, 2)
603 def reshape(x, shp): function
614 return np.reshape(x, tuple(shp))