pyspark/bigdl/nn/criterion.py
def of(cls, jcriterion, bigdl_type="float"):
        """
        Create a python Criterion by a java criterion object

        :param jcriterion: A java criterion object which created by Py4j
        :return: a criterion.
        """
        criterion = Criterion(bigdl_type, jcriterion)
        criterion.value = jcriterion
        criterion.bigdl_type = bigdl_type
        return criterion
def of(cls, jcriterion, bigdl_type="float"):
        criterion = Criterion(bigdl_type, jcriterion)
        criterion.value = jcriterion
        criterion.bigdl_type = bigdl_type
        return criterion
def of ( cls , jcriterion , bigdl_type = "float" ) : criterion = Criterion ( bigdl_type , jcriterion ) criterion . value = jcriterion criterion . bigdl_type = bigdl_type return criterion
Create a python Criterion by a java criterion object

        :param jcriterion: A java criterion object which created by Py4j
        :return: a criterion.
Create a python Criterion by a java criterion object