Source code for alibi.utils.frameworks
from enum import Enum
try:
import tensorflow as tf # noqa
has_tensorflow = True
except ImportError:
has_tensorflow = False
try:
import torch # noqa
has_pytorch = True
except ImportError:
has_pytorch = False