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

fix bug in broadcasting tensors #1242

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ben-zoo
Copy link

@ben-zoo ben-zoo commented Jan 31, 2024

  • [loss_fn] use tf.transpose to broadcast 'loss_1' to 'const'
  • [_attack] define and use 'explicit_broadcast' to broadcast 'lower_bound,' 'upper_bound,' and 'upper_mask'

Ben Zoo added 3 commits January 31, 2024 16:00
* [loss_fn] use tf.transpose to broadcast 'loss_1' to 'const'
* [_attack] define and use 'explicit_broadcast' to broadcast 'lower_bound,' 'upper_bound,' and 'upper_mask'
* change parameter 'lr' in the constructor 'learning_rate'
* prepare function '_get_lr' to obtain the learning rate instead of directly accessing 'self.lr'
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

Successfully merging this pull request may close these issues.

1 participant