- 博客(3)
- 收藏
- 关注
原创 numpy奇技淫巧篇
找出符合条件的元素的index:How to find the index of elements that satisfy certain conditions, at first, I think I can use a loop to realize it … but now that there exists lib … why bother to do that …np.argwhe...
2019-02-09 04:08:09 685 1
原创 TensorFlow奇技淫巧之快速读模型的部分参数
菜鸡笔记,不喜莫喷现在有一个完整的Transformer模型,但是我只想分析它Layer Normalization的参数;其他10810^8108左右的参数我不想看,看到就头大。已知这部分参数的名字大概有如下的patternlayer_prepostprocess/layer_norm/layer_norm_scale和layer_prepostprocess/layer_norm/la...
2019-02-08 03:20:22 462
原创 TensorFlow:数参数的总个数
没啥可说的,直接上脚本import tensorflow as tfmeta_graph_path = '/path-to-your-.meta-file'load_mod = tf.train.import_meta_graph(meta_graph_path)total_parameters = 0for variable in tf.trainable_variables():...
2019-02-07 06:18:46 1367
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人