Disables automatic dependency tracking on attribute assignment.
tfdf.keras.core.no_automatic_dependency_tracking(
method
)
Use to decorate any method of a Trackable object. Attribute assignment in that method will not add dependencies (also respected in Model). Harmless if used in a class which does not do automatic dependency tracking (which means it's safe to use in base classes which may have subclasses which also inherit from Trackable).
Args | |
---|---|
method
|
The method to decorate. |
Returns | |
---|---|
A decorated method which sets and un-sets automatic dependency tracking for the object the method is called on (not thread safe). |