get_dense_feature() 的返回值为什么需要tf.concat(,-1),返回值不是[inputs,feature_dim]吗
- Dominant language
- C++
- Stars
- 2.9k
- Forks
- 553
- PR merge metrics
- No merged PRs in 30d
Description
get_dense_feature() 的返回值为什么需要tf.concat(,-1),返回值不是[inputs,feature_dim]吗?
测试中GetDenseFeature 输入了4个参数,
def testGetDenseFeature(self):
"""Test get dense feature for nodes"""
op = ops.get_dense_feature(tf.constant([1, 2], dtype=tf.int64), [0, 1], [2, 3], 3)
with tf.Session() as sess:
dense_features = sess.run(op)
self.assertAllClose([[2.4, 3.6], [2.4, 3.6]], dense_features[0])
self.assertAllClose([[4.5, 6.7, 8.9], [4.5, 6.7, 8.9]],
dense_features[1])
实际调用时只需要3个参数euler_ops.get_dense_feature(
i nputs, self.feature_idx, self.feature_dim)?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the get_dense_feature() implementation and the testGetDenseFeature test shown in the issue, then compare them with the euler_ops.get_dense_feature call site. Confirm how the arguments and returned shape are intended to align; done means the discrepancy is resolved and the test reflects the documented API.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, tensorflow
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100