Skip to content

AttributeError: module 'tensorflow_hub' has no attribute 'Module' #3

@JimmyChan-cyber

Description

@JimmyChan-cyber

When i run the code "python classification_attack.py --dataset_path data/mr --target_model bert --counter_fitting_cos_sim_path mat.txt --target_dataset mr --target_model_path BERT/mr --USE_cache_path " " --max_seq_length 256 --sim_score_window 40 --nclasses 2
", the ERROR comes out. It seems that tensorflow has changed. Could you please teach me how to replace this function? Thanks a lot.

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