代码实现:

import tensorflow as tf
assert tf.__version__.startswith('2.')
a=tf.constant(2.)
b=tf.constant(4.)
print(f'{a}+{b}={a+b}')

执行结果:

人工智能深度学习入门练习之(6)求和方法2

 

相关文章:

  • 2021-09-27
  • 2021-10-20
  • 2021-06-08
  • 2021-10-15
  • 2021-11-23
  • 2021-09-03
  • 2021-06-23
  • 2021-06-21
猜你喜欢
  • 2021-08-16
  • 2021-10-07
  • 2021-09-27
  • 2021-08-23
  • 2022-01-21
  • 2021-08-03
相关资源
相似解决方案