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

Changes in Role Attribute #4

Open
bsbatusesli opened this issue Oct 23, 2023 · 0 comments
Open

Changes in Role Attribute #4

bsbatusesli opened this issue Oct 23, 2023 · 0 comments

Comments

@bsbatusesli
Copy link

Dear Marina,

First and foremost, I would like to express my deep appreciation for providing the insightful case studies.

I have recently noticed a change in the latest version of accera that requires some adjustments in the way roles are defined. It appears that the definition of the role has been updated from acc.Array.Role to simply acc.Role, and it is no longer an attribute of the Array. This change necessitates a modification in the code for each case study to ensure compatibility with the current version of accera.

For instance, in the wrong version:
Input = acc.Array(role=acc.Array.Role.INPUT, element_type=acc.ScalarType.float32, shape=(input_rows, input_columns, input_channels))

The correct version should now be:
Input = acc.Array(role=acc.Role.INPUT, element_type=acc.ScalarType.float32, shape=(input_rows, input_columns, input_channels))

Best Regards,
Batuhan

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

No branches or pull requests

1 participant