Skip to content

Commit

Permalink
apply resource
Browse files Browse the repository at this point in the history
  • Loading branch information
jmduarte committed Mar 18, 2023
1 parent 45c6171 commit ba89ef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hls4ml/backends/vivado/passes/resource_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class ApplyResourceStrategy(OptimizerPass):
''' Transposes the weights to use the dense_resource matrix multiply routine '''
def match(self, node):

node_matches = isinstance(node, (Dense, Conv1D, SeparableConv1D, Conv2D, SeparableConv2D, LSTM, GRU))
node_matches = isinstance(node, (Dense, Conv1D, SeparableConv1D, Conv2D, SeparableConv2D, LSTM, GRU, Conv1DTranspose, Conv2DTranspose))

is_resource_strategy = node.get_attr('strategy', '').lower() == 'resource'
already_transformed = node.get_attr('_weights_transposed', False) == True
Expand Down

0 comments on commit ba89ef8

Please sign in to comment.