一面
1 你对tensorflow、keras、pytroch等框架了解多少,简述tensorflow运作机制(图概念)
https://blog.csdn.net/weixin_40893939/article/details/89174264
2 简述keras的使用过程
https://blog.csdn.net/weixin_40893939/article/details/89174264
3 如何在fine-tuning的时候只导入几层参数
通过指定变量的命名空间(变量作用域)
saver.restore(sess, modeldir + "model.ckpt")
var_list = [weights['wd1'], weights['out'], biases['bd1'], biases['out'], global_step]
initfc = tf.variables_initializer(var_list, name='init')
tf.variable_scope()、tf.get_variable(name, shape, initializer)变量域:
管理域名并且确定变量所在的域。当variable_scope之前创建过此变量后,get_variable搜索name_scope的前缀来引用之前已经声明的变量,达到共享目的。
另外不同作用域下变量不共享,变量名可以相同。
tf.name_scope()命名域:只会在variable_scope()操作前加前缀,而get_variable使用的前提也是索引name_scope的前缀。
4 有没有看过tensorflow2.0的源码
5 了解python装饰器吗,一般什么地方使用
https://www.runoob.com/w3cnote/python-func-decorators.html
6了解python生成器和迭代器吗
https://blog.csdn.net/mieleizhi0522/article/details/82142856
keras使用迭代器读取数据
https://blog.csdn.net/lujiandong1/article/details/54869170
7 列表的推导
https://www.cnblogs.com/llssx/p/9561509.html
8 有两个列表,如何直接生成字典
https://www.runoob.com/python/python-func-zip.html
keys = ['a', 'b', 'c']
values = [1, 2, 3]
dictionary = dict(zip(keys, values))
print dictionary
"""
输出:
{'a': 1, &