Skip to content

Commit

Permalink
Merge pull request #147 from jeffin07/softmax
Browse files Browse the repository at this point in the history
softmax bug fix
  • Loading branch information
imdeepmind authored Mar 8, 2021
2 parents 6e5af2a + c278a72 commit 42e27f3
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 42e27f3

Please sign in to comment.