Skip to content

No gradients provided for any variable #4

@ZJUzxf

Description

@ZJUzxf

I try the CIFAR10 and MNIST example codes.
explainer = CXPlain(explained_model, model_builder, masking_operation, loss, num_models=5, downsample_factors=downsample_factors, flatten_for_explained_model=True) explainer.fit(x_train, y_train);
but there are the same problem when I run the codes.
ValueError: No gradients provided for any variable: ["<tf.Variable 'conv2d_130/kernel:0' shape=(3, 3, 1, 8) dtype=float32>", "<tf.Variable 'conv2d_130/bias:0' shape=(8,) dtype=float32>", "<tf.Variable 'conv2d_131/kernel:0' shape=(3, 3, 8, 8) dtype=float32>", "<tf.Variable 'conv2d_131/bias:0' shape=(8,) dtype=float32>"...
Can you please tell me how to solve this problem?
Thanks

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