Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion neuralpy/layers/normalization/batchnorm1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __init__(
automatically calculates a unique name for the layer
"""
# Checking num_features field
if num_features is not None and not isinstance(num_features, int):
if num_features is None or not isinstance(num_features, int):
raise ValueError("Please provide a valid num_features")
# Checking eps field
if not isinstance(eps, float):
Expand Down