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

Method value

tensorflow/contrib/eager/python/metrics_impl.py:217–222  ·  view source on GitHub ↗

In graph mode returns the result Tensor while in eager the callable.

(self)

Source from the content-addressed store, hash-verified

215 raise NotImplementedError("Metrics must define a result() member function")
216
217 def value(self):
218 """In graph mode returns the result Tensor while in eager the callable."""
219 if context.executing_eagerly():
220 return self.result
221 else:
222 return self.result()
223
224 # We can support two different strategies of for doing data-parallel
225 # distributed metric computations:

Callers 15

testSaveRestoreMethod · 0.45
add_variableMethod · 0.45
GetSignaturesFunction · 0.45
TEST_FFunction · 0.45
reallocateFunction · 0.45
ComputeMethod · 0.45
VarianceFunction · 0.45

Calls 2

resultMethod · 0.95
executing_eagerlyMethod · 0.80

Tested by 8

testSaveRestoreMethod · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
UpdateRowFunction · 0.36