mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
Add support for tensorflow resource variables (#4438)
* Adding support for resource variables Currently resource variable go undetected by the `TensorFlowVariables` since they do not use the same ops for reading values. This change should fix this until a more robust solution is implemented. * fix varhandle
This commit is contained in:
parent
77005d1814
commit
5133b10700
1 changed files with 2 additions and 1 deletions
|
@ -76,7 +76,8 @@ class TensorFlowVariables(object):
|
|||
if control not in explored_inputs:
|
||||
queue.append(control)
|
||||
explored_inputs.add(control)
|
||||
if "Variable" in tf_obj.node_def.op:
|
||||
if ("Variable" in tf_obj.node_def.op
|
||||
or "VarHandle" in tf_obj.node_def.op):
|
||||
variable_names.append(tf_obj.node_def.name)
|
||||
self.variables = OrderedDict()
|
||||
variable_list = [
|
||||
|
|
Loading…
Add table
Reference in a new issue