Infogain Loss = cross entropy with weights

As mentioned in the title, is information gain loss equivalent to F.crossentropy(input, target, weight)
weight parameters can deal with the class weight for imbalance data