We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6e5af2a + c278a72 commit 42e27f3Copy full SHA for 42e27f3
neuralpy/layers/activation_functions/softmax.py
@@ -29,7 +29,7 @@ def __init__(self, dim=None, name=None):
29
"""
30
super().__init__(_Softmax, "Softmax", layer_name=name)
31
32
- if not isinstance(dim, int):
+ if dim is not None and not isinstance(dim, int):
33
raise ValueError("Please provide a valid dim")
34
35
self.__dim = dim
0 commit comments