Skip to content

Commit c8d9f06

Browse files
committed
fix: update inference main, tflite docs
1 parent 63a400c commit c8d9f06

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

docs/tutorials/tflite.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
## Conversion
1212

1313
```bash
14-
python3 examples/train.py \
14+
python3 examples/tflite.py \
1515
--config-path=/path/to/config.yml.j2 \
1616
--h5=/path/to/weight.h5 \
1717
--bs=1 \ # Batch size

examples/inferences/main.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,8 @@ def main(
5555
previous_decoder_states=model.get_initial_decoder_states(),
5656
)
5757
)
58-
print(outputs.tokens)
5958
transcript = tokenizer.detokenize(outputs.tokens)[0].numpy().decode("utf-8")
60-
6159
logger.info(f"Transcript: {transcript}")
62-
return transcript
6360

6461

6562
if __name__ == "__main__":

0 commit comments

Comments
 (0)