From 053ccfe1f7b2423c7d396929f1412cd6d3c0242a Mon Sep 17 00:00:00 2001 From: voldemortX Date: Mon, 15 Feb 2021 10:31:35 +0800 Subject: [PATCH 1/2] human readable --- convert_torch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert_torch.py b/convert_torch.py index b639f73..fe69170 100644 --- a/convert_torch.py +++ b/convert_torch.py @@ -230,7 +230,7 @@ def lua_recursive_source(module): s += lua_recursive_source(m) s += [')'] else: - s += '# ' + name + ' Not Implement,\n' + s += ['# ' + name + ' Not Implement,\n'] s = map(lambda x: '\t{}'.format(x),s) return s From d4c457b549470d4943404e3c879cff32a18afc1a Mon Sep 17 00:00:00 2001 From: voldemortX Date: Mon, 15 Feb 2021 10:36:20 +0800 Subject: [PATCH 2/2] redundant comma --- convert_torch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert_torch.py b/convert_torch.py index fe69170..155ff55 100644 --- a/convert_torch.py +++ b/convert_torch.py @@ -230,7 +230,7 @@ def lua_recursive_source(module): s += lua_recursive_source(m) s += [')'] else: - s += ['# ' + name + ' Not Implement,\n'] + s += ['# ' + name + ' Not Implement'] s = map(lambda x: '\t{}'.format(x),s) return s