-
Notifications
You must be signed in to change notification settings - Fork 3
[NEW DEVICES AND MLP] H100 and batch_norm mlp #56
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
Conversation
johncalesp
commented
Jun 27, 2024
- Added new MLP for batch_norm
- Added H100 data
| elif operation.name == 'conv_transpose2d': | ||
| return self._special_scale(operation, dest_device, self._conv_transpose2d_scale, unscaled) | ||
| elif operation.name == "batch_norm": | ||
| return self._special_scale(operation, dest_device, self._batch_norm_scale, unscaled) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid too many return statements within this function.
|
|
||
| measurer.measure_configurations(args, num_configs) | ||
|
|
||
| if __name__ == '__main__': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Identical blocks of code found in 6 locations. Consider refactoring.
jimgao1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some minor things but generally looks very good
tools/recording/record_common.py
Outdated
| config[len(config) - len(sample) :] = sample | ||
| # for bachnorm, config is (batch, channel, image_size) and we need to replace channel := pos[1] | ||
| if self._op_name == "batch_norm": | ||
| config[1] = sample[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this logic implemented here but not record_batchnorm.py? It seems like we just need to modify the index_to_config function to avoid adding a special case here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sry, I changed the order, now it should be ok
|
Code Climate has analyzed commit 3cb49e8 and detected 2 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |