Skip to content

Commit

Permalink
Directly importing backend from keras_core (to see whether that still…
Browse files Browse the repository at this point in the history
… requires TF)
  • Loading branch information
bhky committed Dec 1, 2023
1 parent 1a8944d commit 43bef6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import unittest
from typing import Optional, Sequence

import keras_core
from keras_core import backend as keras_backend

import opennsfw2 as n2

Expand Down Expand Up @@ -38,7 +38,7 @@ def _assert(
self.assertTrue(os.path.exists(paths[i]))

def test_predict_images_yahoo_preprocessing(self) -> None:
if keras_core.backend.backend() == "tensorflow":
if keras_backend.backend() == "tensorflow":
grad_cam_paths = OUTPUT_GRAD_CAM_PATHS
else:
grad_cam_paths = None
Expand Down

0 comments on commit 43bef6b

Please sign in to comment.