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 for tensor_db get_aggregated_tensor returns tuple in corner case 1087 #1121

Closed
wants to merge 4 commits into from

Conversation

tanwarsh
Copy link
Collaborator

@tanwarsh tanwarsh commented Nov 5, 2024

Describe the bug
Calling get_aggregated_tensor on a tensor that has already been aggregated returns a tuple of (tensor, {}).

For more information please refer #1087

Reproduced by calling get_aggregated_tensor twice from aggregator while running experiment with 2 collaborators.

Before:
Screenshot 2024-11-05 at 4 54 49 PM

After:
Screenshot 2024-11-05 at 5 02 02 PM

@scngupta-dsp
Copy link
Contributor

My impression was that this scenario: aggregator calling get_aggregated_tensor on a tensor that has already been aggregated should not occur in normal conditions. For e.g. this may happen when there is an undesired behavior due to which aggregator is performing the aggregation twice. In this case I found that the existing functionality of returning a tuple + subsequent exception actually helps catch undesired behavior in the system

Can you please clarify if there are use cases where this is an intended behavior ?

@MasterSkepticista
Copy link
Member

@tanwarsh Could you provide a MWE for this bug?

@teoparvanov
Copy link
Collaborator

teoparvanov commented Nov 15, 2024

Closing this PR following #1087 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants