Skip to content

Paths to DropoutRNNCellMixin and BaseRandomLayer not found (keras-lmu 0.7.0) #57

@flacle

Description

@flacle

This is likely due to Keras version changes. Currently using Keras 3.2.1 with Tensorflow 2.16.1.

So far, I've changed the following in layers.py:

from keras.src.layers.rnn.dropout_rnn_cell_mixin import DropoutRNNCellMixin
to:
from tensorflow.python.keras.layers.recurrent import DropoutRNNCellMixin

and:
from keras.src.engine.base_layer import BaseRandomLayer
to:
from tensorflow.keras.layers import Layer as BaseRandomLayer

and:
training = tf.keras.backend.learning_phase()
to:
training = True

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