change list of tuples to dic
@@ -27,7 +27,7 @@ def generate_legacy_interface(allowed_positional_args=None,
str(args[1:]))
for key in list(value_conversions.keys()):
if key in kwargs:
- for old_value, new_value in value_conversions[key]:
+ for old_value, new_value in value_conversions[key].items():
if kwargs[key] == old_value:
kwargs[key] = new_value
for old_name, new_name in conversions:
@@ -94,4 +94,4 @@ legacy_pooling2d_support = generate_legacy_interface(
('stride', 'strides'),
('border_mode', 'padding'),
('dim_ordering', 'data_format')],
- value_conversions={'dim_ordering': [('tf', 'channels_last'), ('th', 'channels_first'), ('default', None)]})
+ value_conversions={'dim_ordering': {'tf': 'channels_last', 'th': 'channels_first', 'default': None}})
