import numpy as np
import tensorflow as tf

A = [1,3,4,5,6,1,2,3,4,5]
B = [1,3,4,3,2,2,2,3,4,3]

with tf.Session() as sess:
a=sess.run(tf.equal(A, B))
b=a.tolist().count(True)
print(a.tolist())
print(b)

相关文章:

  • 2021-07-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
  • 2022-12-23
猜你喜欢
  • 2021-11-12
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案