Skip to content

Commit a9144fa

Browse files
authored
[speech-commands] Load embedding layer only for includeEmbedding=true (#103)
* [speech-commands] Load embedding layer only for includeEmbedding=true * Bump version.ts
1 parent 5e07bad commit a9144fa

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

speech-commands/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tensorflow-models/speech-commands",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "Speech-command recognizer in TensorFlow.js",
55
"main": "dist/index.js",
66
"unpkg": "dist/speech-commands.min.js",

speech-commands/src/browser_fft_recognizer.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,6 @@ export class BrowserFftSpeechCommandRecognizer implements
182182
`Expected overlapFactor to be >= 0 and < 1, but got ${overlapFactor}`);
183183

184184
const spectrogramCallback: SpectrogramCallback = async (x: tf.Tensor) => {
185-
await this.ensureModelWithEmbeddingOutputCreated();
186-
187185
const normalizedX = normalize(x);
188186
let y: tf.Tensor;
189187
let embedding: tf.Tensor;

speech-commands/src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/** @license See the LICENSE file. */
22
// This code is auto-generated, do not modify this file!
3-
const version = '0.2.1';
3+
const version = '0.2.2';
44
export {version};

0 commit comments

Comments
 (0)