Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ _dot
Function
_dot
tensorflow/contrib/eager/python/examples/revnet/blocks_test.py:28–29 ·
view source on GitHub ↗
(u, v)
Source
from the content-addressed store, hash-verified
26
""
"Compute the degree between two vectors using their usual inner product."
""
27
28
def
_dot(u, v):
29
return
tf.reduce_sum(u * v)
30
31
g1_norm = tf.sqrt(_dot(g1, g1))
32
g2_norm = tf.sqrt(_dot(g2, g2))
Callers
1
compute_degree
Function · 0.85
Calls
1
reduce_sum
Method · 0.80
Tested by
no test coverage detected