MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / f

Method f

tensorpack/tfutils/sessinit.py:184–188  ·  view source on GitHub ↗
(reader, name, v)

Source from the content-addressed store, hash-verified

182 matched_pairs = []
183
184 def f(reader, name, v):
185 val = reader.get_tensor(name)
186 val = SessionUpdate.relaxed_value_for_var(val, v, ignore_mismatch=True)
187 if val is not None:
188 matched_pairs.append((v, val))
189
190 with sess.as_default():
191 self._match_vars(f)

Callers

nothing calls this directly

Calls 3

relaxed_value_for_varMethod · 0.80
appendMethod · 0.80
get_tensorMethod · 0.45

Tested by

no test coverage detected