old_contents: import numpy as np
  import keras.backend as K
  from keras_fcn.losses import mean_categorical_crossentropy
  
  
  def test_categorical_crossentropy():
  
      y_true = np.reshape([1, 1, 0, 0], [1, 2, 2]).astype('int')
      y_true = np.eye(2)[y_true]
      y_pred = np.ones((1, 2, 2, 2)) * 0.5
  
      y_true, y_pred = K.variable(y_true), K.variable(y_pred)
  
      loss = mean_categorical_crossentropy(y_true, y_pred)
      loss = K.get_value(loss)
      assert np.allclose(loss, 0.69314718)
  
new_contents: import numpy as np
  import keras.backend as K
  from keras_fcn.losses import mean_categorical_crossentropy
  
  
  def test_categorical_crossentropy():
  
      y_true = np.reshape([1, 1, 0, 0], [1, 2, 2]).astype('int')
      y_true = np.eye(2)[y_true]
      y_pred = np.ones((1, 2, 2, 2)) * 0.5
  
      y_true, y_pred = K.variable(y_true), K.variable(y_pred)
  
      loss = mean_categorical_crossentropy(y_true, y_pred)
      loss = K.eval(loss)
      assert np.allclose(loss, 0.69314718)
  
subject: Fix test_losses for theano backend