Skip to content

Proposal: Remove tf.keras.optimizers.legacy imports for Keras 3 compatibility. #4564

@SemanticZeus

Description

@SemanticZeus

With the full transition to Keras 3, the tf.keras.optimizers.legacy.Adam (and similar) imports are no longer necessary and, in some environments, may cause dependency issues.

I propose globally replacing imports of tf.keras.optimizers.legacy.* with the standard tf.keras.optimizers.* (e.g., legacy.Adam -> Adam). This aligns DeepChem with the current Keras 3 API standard and should resolve compatibility hurdles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions