Skip to content

Commit

Permalink
Update stat.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskiratsingh2000 authored Sep 13, 2023
1 parent 7895eec commit c4eeff7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ivy/functional/frontends/paddle/stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def numel(x, name=None):
except (ValueError, TypeError):
length = 1 # if 0 dimensional tensor with 1 element
return ivy.array(prod if prod > 0 else ivy.array(length, dtype=ivy.int64))


@with_supported_dtypes(
{"2.5.1 and below": ("float32", "float64", "int32", "int64")},
Expand Down

0 comments on commit c4eeff7

Please sign in to comment.