MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _dot_product

Function _dot_product

tensorflow/contrib/integrate/python/ops/odes.py:80–83  ·  view source on GitHub ↗

Calculate the vector inner product between two lists of Tensors.

(xs, ys, name=None)

Source from the content-addressed store, hash-verified

78
79
80def _dot_product(xs, ys, name=None):
81 """Calculate the vector inner product between two lists of Tensors."""
82 with ops.name_scope(name, 'dot_product', [xs, ys]) as scope:
83 return math_ops.add_n([x * y for x, y in zip(xs, ys)], name=scope)
84
85
86def _runge_kutta_step(func,

Callers 2

_interp_fitFunction · 0.85
_interp_evaluateFunction · 0.85

Calls 1

name_scopeMethod · 0.45

Tested by

no test coverage detected