摘要:
转自 https://www.jianshu.com/p/1eff17aa6743?utm_campaign=haruki&utm_content=note&utm_medium=reader_share&utm_source=qq 阅读全文
摘要:
https://zhuanlan.zhihu.com/p/58607298 阅读全文
摘要:
1. tf.constant(list/array) , tf.convert_to_tensor(list/array) 2. tf.ones(shape) tf.zeros(shape) tf.fill(shape,value) 3.tf.ones_like(tensor) tf.zeros_l 阅读全文
摘要:
# 可以用 next(iter(list/dict)) 来查看l = [1,2,3,4] print(next(iter(l))) # 1 d = {5:'a',6:'b'} print(next(iter(d.items()))) # (5, 'a') 阅读全文