Skip to content

add four backend method tests,including 'sin','cos','copy' and 'power'#105

Closed
ritualOne wants to merge 4 commits intotencent-quantum-lab:masterfrom
ritualOne:tensorcirciut_change
Closed

add four backend method tests,including 'sin','cos','copy' and 'power'#105
ritualOne wants to merge 4 commits intotencent-quantum-lab:masterfrom
ritualOne:tensorcirciut_change

Conversation

@ritualOne
Copy link
Copy Markdown

the change allows us to test four new methods

Comment thread tests/test_backends.py Outdated
tc.backend.power(arr,6),
np.power(arr,6),
atol=1e-5
)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

could these two methods tests also move to test_backend_method_2? namely, whether currently pytorch backend supports these two methods

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

yes,change will be committed soon

Copy link
Copy Markdown
Contributor

@refraction-ray refraction-ray left a comment

Choose a reason for hiding this comment

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

failed black now, please run black locally to ensure the code format

@refraction-ray
Copy link
Copy Markdown
Contributor

closed as replaced by #109

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.

2 participants