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

Function interpolate

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

Interpolate through the next time point, integrating as necessary.

(solution, history, rk_state, i)

Source from the content-addressed store, hash-verified

375 return rk_state, history, n_steps + 1
376
377 def interpolate(solution, history, rk_state, i):
378 """Interpolate through the next time point, integrating as necessary."""
379 with ops.name_scope('interpolate'):
380 rk_state, history, _ = control_flow_ops.while_loop(
381 lambda rk_state, *_: t[i] > rk_state.t1,
382 adaptive_runge_kutta_step, (rk_state, history, 0),
383 name='integrate_loop')
384 y = _interp_evaluate(rk_state.interp_coeff, rk_state.t0, rk_state.t1,
385 t[i])
386 solution = solution.write(i, y)
387 return solution, history, rk_state, i + 1
388
389 with _assert_increasing(t):
390 num_times = array_ops.size(t)

Callers

nothing calls this directly

Calls 4

_interp_evaluateFunction · 0.85
name_scopeMethod · 0.45
while_loopMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected