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

Function tfvariable

tensorflow/compiler/aot/tests/make_test_graphs.py:152–157  ·  view source on GitHub ↗
(_)

Source from the content-addressed store, hash-verified

150
151
152def tfvariable(_):
153 x = variables.Variable(1000.0, name='x')
154 old_x = x.value()
155 with ops.control_dependencies([old_x]):
156 new_x = x.assign_add(42.0)
157 array_ops.stack([old_x, new_x], name='result')
158
159
160def tfvariable_sequential_updates(_):

Callers

nothing calls this directly

Calls 5

valueMethod · 0.95
assign_addMethod · 0.95
VariableMethod · 0.80
control_dependenciesMethod · 0.45
stackMethod · 0.45

Tested by

no test coverage detected