Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pruning_test.py error: module 'pruning' has no attribute 'union' and 'intersect' #14

Open
Jiacheng98 opened this issue Oct 24, 2020 · 0 comments

Comments

@Jiacheng98
Copy link

Two methods:

  1. Add "union" and "intersect" functions (in union.py) to pruning.py
    or
  2. Add "from lottery_ticket.foundations import union" line to pruning_test.py
  3. Change line 33 "union_mask = pruning.union(masks1, masks2)" to "union_mask = union.union(masks1, masks2)",
    and line 39 "intersect_mask = pruning.intersect(masks1, masks2)" to "intersect_mask = union.intersect(masks1, masks2)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant