Commit 7b50beb0 authored by Sanjoy Das's avatar Sanjoy Das Committed by TensorFlower Gardener
Browse files

[NFC] Use compile_all_resource_ops instead of allow_resource_ops for clarity

Firstly, rename compile_resource_ops to compile_all_resource_ops to emphasize
that the device registration wants us to compile all kinds of resource
operations, not just resource variable ops.

Secondly using op_filter.allow_resource_ops was semantically incorrect; its
purpose is to disallow clustering functional while nodes with resource variable
operations, while the condition that is being changed only cares about whether
we're compiling for XLA_* devices.  It just so happens that
op_filter.allow_resource_ops and registration->compile_all_resource_ops have the
same value.

PiperOrigin-RevId: 238348078
parent d82080a0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment