From f9c2c56c7d05dfdb076840a6c091d6341db725d4 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Tue, 1 Nov 2016 22:19:28 +0700 Subject: utils/conv_gen.py: explicitly import reduce() This change finally makes the script able to be executed in Python 3 environment. Due to new Python 3 restrictions, the reduce() should be imported explicitly. Change-Id: Icbc81c29f1a226aeed2c1245a5d60809fe124005 --- utils/conv_gen.py | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/conv_gen.py b/utils/conv_gen.py index 78b23355..62fa8adb 100644 --- a/utils/conv_gen.py +++ b/utils/conv_gen.py @@ -24,6 +24,7 @@ mod_license = """ """ import sys, os, math +from functools import reduce class ConvolutionalCode(object): -- cgit v1.2.3