class_docstr: The base class for Keras-style API objectives in BigDL.
class_docstr_tok: ["The","base","class","for","Keras-style","API","objectives","in","BigDL","."]
docstr: Create a Python LossFunction from a JavaObject.
  
  # Arguments
  jloss: A java criterion object which created by Py4j
docstr_tok: ["Create","a","Python","LossFunction","from","a","JavaObject",".","#","Arguments","jloss",":","A","java","criterion","object","which","created","by","Py4j"]
code: def of(cls, jloss, bigdl_type="float"):
      """
      Create a Python LossFunction from a JavaObject.
  
      # Arguments
      jloss: A java criterion object which created by Py4j
      """
      loss = LossFunction(bigdl_type, jloss)
      loss.value = jloss
      loss.bigdl_type = bigdl_type
      return loss
  
imports: import sys
  from bigdl.dllib.keras.base import ZooKerasCreator
  from bigdl.dllib.nn.criterion import Criterion
  from bigdl.dllib.utils.common import JTensor
label_desc: Use image node_id 2 for calling the LossFunction obj's underlying member method code with example usage: obj.of(cls, jloss, bigdl_type) and returns: loss