let cat1 = new Image;
cat1.src = "cat-1.jpg";
let cat2 = tf.squeeze(result);
console.log(cat2.dtype) #float32
const tensor = tf.squeeze(result);
const canvas = document.createElement('canvas');
canvas.width = tensor.shape.width
canvas.height = tensor.shape.height
await tf.browser.toPixels(tensor, canvas);
const cat2 = document.createElement('img');
cat2.src = canvas.toDataURL();