Skip to content

ValueError: TensorFlow is executing eagerly. Please disable eager execution. #1

@Kritz23

Description

@Kritz23

When I execute this line -
classifier = KerasClassifier(model=model, clip_values=None, use_logits=False)
this error comes up - ValueError: TensorFlow is executing eagerly. Please disable eager execution.

I disabled TensorFlow's eager execution by -

import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

But then, when I again run the first line, my kernel dies. Do you know what may be the problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions