e2dict
1 | dict((name, getattr(ref, name)) for name in dir(ref) if not name.startswith('_')) |
1 | dict((name, getattr(ref, name)) for name in dir(ref) if not name.startswith('_')) |
直接delete失败
需要直接git rm file
1 | # Get rid of the ticks |
1 | >>> a = np.array([0, 1, 2]) |
1 | idx = np.random.permutation( n ) |
1 | np.delete([1,3,2], [1]) |
在debug的时候,调用h5py读取文件,
然后debug失败。
解决: 关闭h5py读取文件
1 | 初始化使用 初始化器和 tf.assign() |
1 | # Let your BUILD target depend on "//tensorflow/python/debug:debug_py" |
1 | with tf.name_scope('ab'): |