代码实现:

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-11-23
  • 2021-09-03
  • 2021-06-23
  • 2021-06-21
  • 2021-12-14
  • 2021-12-04
  • 2021-07-11
  • 2021-07-15
猜你喜欢
  • 2022-01-23
  • 2021-08-23
  • 2022-01-21
  • 2021-08-03
  • 2021-10-20
  • 2021-06-08
  • 2021-10-15
相关资源
相似解决方案