Skip to content

Conversation

@johncalesp
Copy link
Contributor

  1. Added new MLP for batch_norm
  2. Added H100 data

@johncalesp johncalesp requested a review from jimgao1 June 27, 2024 14:14
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)

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__':

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.

Copy link
Contributor

@jimgao1 jimgao1 left a 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

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]
Copy link
Contributor

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.

Copy link
Contributor Author

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

@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit 3cb49e8 and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1
Duplication 1

View more on Code Climate.

@johncalesp johncalesp merged commit 08a280a into main Jun 27, 2024
@johncalesp johncalesp deleted the johncalesp/h100-data branch June 27, 2024 18:07
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.

3 participants