tools.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:TI-pooling 作者: dlaptev 项目源码 文件源码
def _transform(self, padded, number_of_transformations):
    tiled = np.tile(np.expand_dims(padded, 4), [number_of_transformations])
    for transformation_index in xrange(number_of_transformations):
      angle = 360.0 * transformation_index / float(number_of_transformations)
      tiled[:, :, :, :, transformation_index] = rotate(
          tiled[:, :, :, :, transformation_index],
          angle,
          axes=[1, 2],
          reshape=False)
    print('finished transforming')
    return tiled
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号