Skip to content

Commit

Permalink
Enabled oneDNN optimisations
Browse files Browse the repository at this point in the history
bumped version
  • Loading branch information
Mattk70 committed Apr 15, 2024
1 parent 1b6fcd6 commit 971c830
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/BirdNet2.4.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ onmessage = async (e) => {
DEBUG && console.log(`model received load instruction. Using list: ${list}, batch size ${batch}`);

tf.setBackend('tensorflow').then(async () => {
tf.enableProdMode();
//tf.enableProdMode();
if (DEBUG) {
console.log(tf.env());
console.log(tf.env().getFlags());
Expand Down
1 change: 1 addition & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const log = require('electron-log');
const fs = require("node:fs");
const path = require('node:path');
const settings = require('electron-settings');
process.env['TF_ENABLE_ONEDNN_OPTS'] = "1";

//require('update-electron-app')();
let files = [];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chirpity",
"version": "1.6.10",
"version": "1.7.0",
"description": "Chirpity Nocmig",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 971c830

Please sign in to comment.