Skip to content

Instantly share code, notes, and snippets.

@codeas
Created May 18, 2020 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codeas/3a790a5dea7a8257520b9014cbc2f422 to your computer and use it in GitHub Desktop.
Save codeas/3a790a5dea7a8257520b9014cbc2f422 to your computer and use it in GitHub Desktop.
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