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

compiler: Expose Bundle's properties correctly #2487

Merged
merged 2 commits into from
Nov 15, 2024

Conversation

FabioLuporini
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Nov 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.28%. Comparing base (e0e69d4) to head (2042d86).
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2487   +/-   ##
=======================================
  Coverage   87.28%   87.28%           
=======================================
  Files         238      238           
  Lines       45325    45330    +5     
  Branches     4027     4027           
=======================================
+ Hits        39561    39566    +5     
  Misses       5083     5083           
  Partials      681      681           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

'_mem_mapped', '_mem_host', '_mem_stack', '_mem_constant',
'_mem_shared', '__padding_dtype__', '_size_domain', '_size_halo',
'_size_owned', '_size_padding', '_size_nopad', '_size_nodomain',
'_offset_domain', '_offset_halo', '_offset_owned', '_dist_dimensions',
'_C_get_field', 'grid', 'symbolic_shape']:
'_C_get_field', 'grid', 'symbolic_shape',
*AbstractFunction.__properties__):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: ('_mem_internal_eager', '_mem_internal_lazy', ...) + AbstractFunction.__properties__ might be tidier imo

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a + b creates two tuples a, b then a new third one to merge them while current one only creates one directly.

@@ -368,6 +368,8 @@ def __args_setup__(cls, *args, **kwargs):
raise ValueError("Component type must be subclass of AbstractFunction")
if len({i.__padding_dtype__ for i in components}) != 1:
raise ValueError("Components must have the same padding dtype")
if len({i.properties for i in components}) != 1:
raise ValueError("Components must have the same properties")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks more like "counting" rather than "comparing", should you say, the same number of properties?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not counting properties it's check the set length one, i.e all properties are the same

@mloubout mloubout merged commit f7a9e94 into master Nov 15, 2024
31 checks passed
@mloubout mloubout deleted the patch-is-transient-vecttypes branch November 15, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants