Skip to content
Snippets Groups Projects
Commit dfb42854 authored by Felix Jentzsch's avatar Felix Jentzsch
Browse files

Lint fix

parent 57f9fecd
No related branches found
No related tags found
No related merge requests found
...@@ -132,7 +132,7 @@ class InferConvInpGen(Transformation): ...@@ -132,7 +132,7 @@ class InferConvInpGen(Transformation):
) )
graph.node.insert(node_ind, padding_node) graph.node.insert(node_ind, padding_node)
if (self.use_rtl_variant): if self.use_rtl_variant:
ConvInpGen_node = helper.make_node( ConvInpGen_node = helper.make_node(
"ConvolutionInputGenerator_rtl", "ConvolutionInputGenerator_rtl",
[ConvInpGen_input], [ConvInpGen_input],
...@@ -166,12 +166,13 @@ class InferConvInpGen(Transformation): ...@@ -166,12 +166,13 @@ class InferConvInpGen(Transformation):
if (stride_h > 1 or stride_w > 1) and is_kernel_pointwise: if (stride_h > 1 or stride_w > 1) and is_kernel_pointwise:
assert is_square_image, ( assert is_square_image, (
"%s : DownSampler currently only supports square input images." """%s : DownSampler currently only supports square
input images."""
% n.name % n.name
) )
assert is_equal_stride, ( assert is_equal_stride, (
"""%s : DownSampler currently only supports equal stride value """%s : DownSampler currently only supports equal stride
along different axes.""" value along different axes."""
% n.name % n.name
) )
ConvInpGen_idim = ConvInpGen_idim_h ConvInpGen_idim = ConvInpGen_idim_h
...@@ -226,7 +227,8 @@ class InferConvInpGen(Transformation): ...@@ -226,7 +227,8 @@ class InferConvInpGen(Transformation):
) )
else: # 1D images and/or kernels else: # 1D images and/or kernels
assert is_1d_convolution, ( assert is_1d_convolution, (
"%s: ConvolutionInputGenerator1D works only for 1D convs" """%s: ConvolutionInputGenerator1D works only
for 1D convs"""
% n.name % n.name
) )
if dilation_h > 1 or dilation_w > 1: if dilation_h > 1 or dilation_w > 1:
...@@ -1697,4 +1699,4 @@ class InferConcatLayer(Transformation): ...@@ -1697,4 +1699,4 @@ class InferConcatLayer(Transformation):
if graph_modified: if graph_modified:
model = model.transform(InferShapes()) model = model.transform(InferShapes())
model = model.transform(InferDataTypes()) model = model.transform(InferDataTypes())
return (model, graph_modified) return (model, graph_modified)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment