Commit 733ea8ac authored by Sergei Lebedev's avatar Sergei Lebedev Committed by TensorFlower Gardener
Browse files

Removed duplicated _Overload* methods in variables

Prior to this change all variable classes (Variable, RefVariable and
ResourceVariable) had their own copy/pasted implementation of
_OverloadOperator and _OverloadAllOperators. This was unnecessary since
a single implementation in the base class would work just as well.

The change also fixes the __name__ and __module__ of the operator
wrapper functions.

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