// Importing the tensorflow.Js library
import * as tf from "@tensorflow/tfjs"
// const tf = require("@tensorflow/tfjs")
// Creating labels tensor
const a = tf.tensor2d([[1,2,3,4,5], [7,8,9,10,11]])
// Creating predictions tensor
const b = tf.tensor2d([[6,735,8,59,10], [45,34,322,2,3]])
const c = tf.tensor2d([[4,34,34,2,4],[65,34,3,2,3]])
// Computing cross entropy with an option parameter number
softmax_cross_entropy = tf.losses.softmaxCrossEntropy(a, b, 5)
softmax_cross_entropy.print();