Skip to content

Commit

Permalink
micro_speech: Add py_rules loads and import paths (#2276)
Browse files Browse the repository at this point in the history
BUG=cleanup
  • Loading branch information
rascani authored Oct 17, 2023
1 parent ceb8cc8 commit 6ec8c54
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions tensorflow/lite/micro/examples/micro_speech/BUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Description:
# TensorFlow Lite microcontroller example.
load("@rules_python//python:defs.bzl", "py_binary", "py_test")
load("@tflm_pip_deps//:requirements.bzl", "requirement")
load("//tensorflow/lite/micro:build_def.bzl", "generate_cc_arrays")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from tensorflow.python.platform import test

import tensorflow as tf
import audio_preprocessor
from tflite_micro.tensorflow.lite.micro.examples.micro_speech import audio_preprocessor


class AudioPreprocessorTest(test_util.TensorFlowTestCase):
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/lite/micro/examples/micro_speech/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from tflite_micro.python.tflite_micro import runtime
from tensorflow.python.platform import resource_loader
import tensorflow as tf
import audio_preprocessor
from tflite_micro.tensorflow.lite.micro.examples.micro_speech import audio_preprocessor

_SAMPLE_PATH = flags.DEFINE_string(
name='sample_path',
Expand Down
4 changes: 2 additions & 2 deletions tensorflow/lite/micro/examples/micro_speech/evaluate_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
from tensorflow.python.platform import resource_loader
from tensorflow.python.platform import test
from tflite_micro.python.tflite_micro import runtime
import evaluate
import audio_preprocessor
from tflite_micro.tensorflow.lite.micro.examples.micro_speech import audio_preprocessor
from tflite_micro.tensorflow.lite.micro.examples.micro_speech import evaluate


class MicroSpeechTest(test_util.TensorFlowTestCase):
Expand Down

0 comments on commit 6ec8c54

Please sign in to comment.