Skip to content

Conversation

@CreativeBuilds
Copy link
Contributor

This issue was caused from using __dict__ which converted the Tensor object into one with just its datatype and shape values, disregarding the actual buffer or content within the Tensor.

The Axon.py file when it was trying to decode the response from the sender would then compare the hash using the buffer that was sent, causing a mismatch of hashes.

This change fixes that by utilizing .dict() instead.

# Getting the fields of the instance
instance_fields = self.__dict__

instance_fields = self.dict() # __dict__ converts the Tensor types into strings causing a mismatch in the hash, so we use .dict() instead
Copy link
Contributor

Choose a reason for hiding this comment

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

I think @ifrit98 would have better visibility on this change than I do, so we should for his approval before merging.

Copy link
Contributor

Choose a reason for hiding this comment

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

@ifrit98 would this create an issue for the header size? If I am not mistaken, there is a sizing limit on the headers which caused us to create hashes rather than using the full tensor.

@ifrit98 ifrit98 changed the base branch from master to staging October 17, 2023 15:20
@ifrit98 ifrit98 self-requested a review October 17, 2023 15:20
@ifrit98
Copy link
Contributor

ifrit98 commented Oct 17, 2023

See: #1548

@ifrit98 ifrit98 closed this Oct 17, 2023
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