Skip to content

Commit

Permalink
softmax bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffin07 committed Feb 23, 2021
1 parent 6e5af2a commit c278a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neuralpy/layers/activation_functions/softmax.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, dim=None, name=None):
"""
super().__init__(_Softmax, "Softmax", layer_name=name)

if not isinstance(dim, int):
if dim is not None and not isinstance(dim, int):
raise ValueError("Please provide a valid dim")

self.__dim = dim
Expand Down

0 comments on commit c278a72

Please sign in to comment.