MCPcopy Create free account
hub / github.com/alibaba/nann / experimental_ref

Method experimental_ref

tensorflow/tensorflow/python/ops/variables.py:1226–1277  ·  view source on GitHub ↗

Returns a hashable reference object to this Variable. Warning: Experimental API that could be changed or removed. The primary usecase for this API is to put variables in a set/dictionary. We can't put variables in a set/dictionary as `variable.__hash__()` is no longer available sta

(self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 9

testRefMethod · 0.95
testRefDerefMethod · 0.95
testRefInSetMethod · 0.95
testRefInDictMethod · 0.95
testVariableRefStrongMethod · 0.95
_graph_mode_decoratorFunction · 0.45
_eager_mode_decoratorFunction · 0.45
_get_intermediatesFunction · 0.45
_channel_flatten_inputFunction · 0.45

Calls 1

ReferenceMethod · 0.45

Tested by 5

testRefMethod · 0.76
testRefDerefMethod · 0.76
testRefInSetMethod · 0.76
testRefInDictMethod · 0.76
testVariableRefStrongMethod · 0.76