面试题

一面

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, &
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值