tsinghua-fib-lab / CLSR

The official implementation of "Disentangling Long and Short-Term Interests for Recommendation" (WWW '22)
MIT License
70 stars 19 forks source link

请教一个小问题 #14

Closed a514131 closed 1 year ago

a514131 commented 2 years ago

请问您在调试代码的时候是怎么输出tensor的具体值的,我尝试了往上的各种方法都报错或者只是输出Tensor("mask:0", shape=(?, 50), dtype=int32),我也尝试了用tf.enable_eager_execution去掉问号问号的维度再进行sess.run输出值,依然报错,想跟您请教一下您项目调试的方法

DavyMorgan commented 2 years ago

可以试一试tf.Print或者sess.run查看tensor具体的数值。

a514131 commented 1 year ago

谢谢!

------------------ 原始邮件 ------------------ 发件人: "tsinghua-fib-lab/CLSR" @.>; 发送时间: 2022年9月26日(星期一) 上午10:42 @.>; @.**@.>; 主题: Re: [tsinghua-fib-lab/CLSR] 请教一个小问题 (Issue #14)

可以试一试tf.Print或者sess.run查看tensor具体的数值。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>