Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ibelem committed Oct 10, 2024
1 parent c7b0f05 commit 202ec93
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lenet/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ async function main() {
buildTimeElement.innerHTML = '';
predictButton.setAttribute('disabled', true);
clearInferenceResult();
const [deviceType] =
const [backend, deviceType] =
$('input[name="backend"]:checked').attr('id').split('_');
console.log(`${backend} ${deviceType}`);
drawNextDigitFromMnist();
const weightUrl = utils.weightsOrigin() +
'/test-data/models/lenet_nchw/weights/lenet.bin';
Expand Down
3 changes: 2 additions & 1 deletion nsnet2/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,9 @@ browseButton.onclick = () => {

export async function main() {
try {
const [deviceType] =
const [backend, deviceType] =
$('input[name="backend"]:checked').attr('id').split('_');
console.log(`${backend} ${deviceType}`);

Check failure on line 158 in nsnet2/main.js

View workflow job for this annotation

GitHub Actions / job (ubuntu-latest)

Trailing spaces not allowed

Check failure on line 158 in nsnet2/main.js

View workflow job for this annotation

GitHub Actions / job (macos-latest)

Trailing spaces not allowed
// Handle frames parameter.
const searchParams = new URLSearchParams(location.search);
let frames = parseInt(searchParams.get('frames'));
Expand Down
3 changes: 2 additions & 1 deletion rnnoise/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,9 @@ fileInput.addEventListener('input', (event) => {

export async function main() {
try {
const [deviceType] =
const [backend, deviceType] =
$('input[name="backend"]:checked').attr('id').split('_');
console.log(`${backend} ${deviceType}`);
modelInfo.innerHTML = '';
await log(modelInfo, `Creating RNNoise with input shape ` +
`[${batchSize} (batch_size) x 100 (frames) x 42].`, true);
Expand Down

0 comments on commit 202ec93

Please sign in to comment.