Skip to content

Instantly share code, notes, and snippets.

@codeas
Created May 18, 2020
Embed
What would you like to do?
function createTensor_(array) {
//Logger.log("shape[%s,%s]", array.length, array[0].length);
const tensor = tf.tensor2d(array, [array.length, array[0].length]);
return tensor;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment