Skip to content

Commit db7dc13

Browse files
Apply suggestions from code review
Co-authored-by: Alexander Suslov <[email protected]>
1 parent 2a04ee6 commit db7dc13

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

examples/openvino/aot/aot_openvino_compiler.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
from transformers import AutoModel
3131

3232
import nncf
33-
import nncf.experimental
34-
import nncf.experimental.torch
3533
from nncf.experimental.torch.fx.quantization.quantize_pt2e import quantize_pt2e
3634

3735

@@ -239,7 +237,7 @@ def transform(x):
239237
action="store_true",
240238
help="Enable model validation. --dataset argument is requred for the validation.",
241239
)
242-
parser.add_argument("--dataset", type=str, help="Path to the calibration dataset.")
240+
parser.add_argument("--dataset", type=str, help="Path to the validation dataset.")
243241
parser.add_argument(
244242
"--device",
245243
type=str,

examples/openvino/openvino_build_example.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ main() {
3434
local example_dir=examples/openvino
3535
local example_build_dir="${build_dir}/${example_dir}"
3636
local cmake_prefix_path="${PWD}/${build_dir}/lib/cmake/ExecuTorch;${PWD}/${build_dir}/third-party/gflags;"
37-
3837
rm -rf "${example_build_dir}"
3938

4039
## OpenVINO original
@@ -43,11 +42,10 @@ main() {
4342
-B"${example_build_dir}" \
4443
$EXECUTORCH_ROOT/$example_dir
4544

45+
<<<<<<< HEAD:examples/openvino/openvino_build_example.sh
4646
cmake --build "${example_build_dir}" -j$(nproc)
47-
48-
# Switch back to the original directory
49-
cd - > /dev/null
50-
47+
=======
48+
cmake --build "${example_build_dir}" -j5
5149
# Print a success message
5250
echo "Build successfully completed."
5351
}

0 commit comments

Comments
 (0)