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

Method loss

tensorflow/contrib/optimizer_v2/optimizer_v2_test.py:43–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 var0 = resource_variable_ops.ResourceVariable([1.0, 2.0], dtype=dtype)
42 var1 = resource_variable_ops.ResourceVariable([3.0, 4.0], dtype=dtype)
43 def loss():
44 return 5 * var0 + 3 * var1 # pylint: disable=cell-var-from-loop
45 # Note that for eager execution, minimize expects a function instead of a
46 # Tensor.
47 global_step = resource_variable_ops.ResourceVariable(

Callers 3

run_trainingFunction · 0.45
trainFunction · 0.45

Calls 2

ResourceVariableMethod · 0.45
constantMethod · 0.45

Tested by

no test coverage detected