Skip to content

Commit

Permalink
Merge pull request #52 from qiboteam/torch_migr_fix
Browse files Browse the repository at this point in the history
Importing pytorch backend from qiboml
  • Loading branch information
BrunoLiegiBastonLiegi authored Nov 19, 2024
2 parents 800e800 + a24fd05 commit 3e52004
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/qiboml/backends/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from typing import Union

from qibo.backends.pytorch import PyTorchBackend # qiboml pytorch is not updated
from qibo.config import raise_error

from qiboml.backends.jax import JaxBackend
from qiboml.backends.pytorch import PyTorchBackend
from qiboml.backends.tensorflow import TensorflowBackend

PLATFORMS = ["tensorflow", "pytorch", "jax"]
Expand Down
4 changes: 1 addition & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@


def get_backend(backend_name):
from qibo.backends.pytorch import ( # the qiboml pytorch is not updated
PyTorchBackend,
)

from qiboml.backends.jax import JaxBackend
from qiboml.backends.pytorch import PyTorchBackend
from qiboml.backends.tensorflow import TensorflowBackend

NAME2BACKEND = {
Expand Down

0 comments on commit 3e52004

Please sign in to comment.