Skip to content

Commit

Permalink
undo acc_dtype=floatX in CategoricalCrossEntropy
Browse files Browse the repository at this point in the history
  • Loading branch information
udibr committed May 20, 2015
1 parent 0556b46 commit 99e8a09
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions blocks/bricks/cost.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ def cost_matrix(self, y, y_hat):
class CategoricalCrossEntropy(Cost):
@application(outputs=["cost"])
def apply(self, y, y_hat):
cost = tensor.nnet.categorical_crossentropy(y_hat, y).mean(
acc_dtype=floatX)
cost = tensor.nnet.categorical_crossentropy(y_hat, y).mean()
return cost


Expand Down

0 comments on commit 99e8a09

Please sign in to comment.