From f9cbe2fe99c805dcca934c66677951f428d3b3e2 Mon Sep 17 00:00:00 2001 From: Tim Dettmers Date: Mon, 8 Aug 2022 09:13:22 -0700 Subject: Fixed prod Python < 3.7 compatibility in function.py. --- bitsandbytes/autograd/_functions.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bitsandbytes/autograd/_functions.py') diff --git a/bitsandbytes/autograd/_functions.py b/bitsandbytes/autograd/_functions.py index a5446b7..01e7073 100644 --- a/bitsandbytes/autograd/_functions.py +++ b/bitsandbytes/autograd/_functions.py @@ -6,6 +6,7 @@ import bitsandbytes.functional as F from dataclasses import dataclass from functools import reduce # Required in Python 3 +# math.prod not compatible with python < 3.8 def prod(iterable): return reduce(operator.mul, iterable, 1) -- cgit v1.2.3