Skip to content

Commit

Permalink
fix: remove numpy use from tf bincount backend (ivy-llc#28378)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam-Armstrong authored Feb 22, 2024
1 parent 2a41cc9 commit fb66d33
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def bincount(
out: Optional[Union[tf.Tensor, tf.Variable]] = None,
) -> Union[tf.Tensor, tf.Variable]:
return tf.math.bincount(
x.numpy().tolist(),
x,
weights=weights,
minlength=minlength,
dtype=x.dtype if weights is None else weights.dtype,
Expand Down

0 comments on commit fb66d33

Please sign in to comment.