Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions keras/src/backend/openvino/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@

import numpy as np
import openvino as ov
import openvino.runtime.opset14 as ov_opset
from openvino import Model
from openvino import Tensor
from openvino import compile_model
from openvino.runtime import Type
import openvino.opset14 as ov_opset

from openvino import Model, Tensor, compile_model, Type
Copy link
Contributor

Choose a reason for hiding this comment

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

@p-wysocki
To pass the formatter test, please update this import statement to the following:

from openvino import Model
from openvino import Tensor
from openvino import Type
from openvino import compile_model

you can also install pre-commit by running:

pip install pre-commit

Then, run the following command locally to automatically fix formatting issues:

pre-commit run --all-files --hook-stage manual


from keras.src import tree
from keras.src.backend.common import KerasVariable
Expand Down
2 changes: 1 addition & 1 deletion keras/src/backend/openvino/math.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import openvino.runtime.opset14 as ov_opset
import openvino.opset14 as ov_opset
from openvino import Type

from keras.src.backend.openvino.core import OpenVINOKerasTensor
Expand Down
2 changes: 1 addition & 1 deletion keras/src/backend/openvino/nn.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import openvino.runtime.opset14 as ov_opset
import openvino.opset14 as ov_opset
from openvino import Type

from keras.src import backend
Expand Down
2 changes: 1 addition & 1 deletion keras/src/backend/openvino/numpy.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import numpy as np
import openvino.runtime.opset14 as ov_opset
import openvino.opset14 as ov_opset
from openvino import Type

from keras.src.backend import config
Expand Down
2 changes: 1 addition & 1 deletion keras/src/backend/openvino/random.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import numpy as np
import openvino.runtime.opset14 as ov_opset
import openvino.opset14 as ov_opset
from openvino import Type

from keras.src.backend.config import floatx
Expand Down
2 changes: 1 addition & 1 deletion keras/src/backend/openvino/trainer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np
import openvino as ov
import openvino.runtime.opset14 as ov_opset
import openvino.opset14 as ov_opset

from keras.src import backend
from keras.src import callbacks as callbacks_module
Expand Down
Loading