Skip to content

Conversation

@mthrok
Copy link
Contributor

@mthrok mthrok commented Jan 5, 2023

Summary:
Merge utility binding

This commit updates the utility binding, so that we can use is_module_available()
for checking the existence of extension modules.

To ensure the existence of module, this commit migrates the binding of utility functions
to PyBind11.

Going forward, we should use TorchBind for ops that we want to support TorchScript,
otherwise default to PyBind11. (PyBind has advantage of not copying strings.)

Differential Revision: D42355992

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D42355992

Summary:
Pull Request resolved: pytorch#2956

Merge utility binding

This commit updates the utility binding, so that we can use `is_module_available()`
for checking the existence of extension modules.

To ensure the existence of module, this commit migrates the binding of utility functions
to PyBind11.

Going forward, we should use TorchBind for ops that we want to support TorchScript,
otherwise default to PyBind11. (PyBind has advantage of not copying strings.)

Reviewed By: hwangjeff

Differential Revision: D42355992

fbshipit-source-id: ad1d106c92f693e7434cd2c22ab61c7cb1d8e4f4
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D42355992

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in f70b970.

@mthrok mthrok deleted the export-D42355992 branch January 5, 2023 23:43
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.

3 participants