Skip to content

Commit

Permalink
update to zigzag 3.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinGeens committed Sep 6, 2024
1 parent 3d3dc77 commit c7453ea
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
zigzag-dse==3.6.1
zigzag-dse==3.6.2
rtree
deap
matplotlib
Expand Down
16 changes: 0 additions & 16 deletions stream/classes/io/onnx/softmax.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def get_nodes(self):
self.set_nodes_name_and_type()
# Override dependencies
self.correct_nodes_operand_source()
# self.correct_nodes_inputs_outputs()

return self.nodes

Expand All @@ -78,21 +77,6 @@ def correct_nodes_operand_source(self):
node_div.input_operand_source = {op_I: id_exp, op_W: id_sum}
node_div.constant_operands = []

# def correct_nodes_inputs_outputs(self):
# """Correct the `node_inputs` and `node_outputs` of all Computation Nodes that stem from the base
# ONNX node"""
# node_max, node_exp, node_sum, node_div = self.nodes
# prev_node_name = node_max.input_names[0] # Node before Softmax
# next_node_name = node_max.output_names[0] # Node after Softmax

# node_max.output_names = [node_exp.name]
# node_exp.input_names = [node_max.name, prev_node_name]
# node_exp.output_names = [node_div.name, node_sum.name]
# node_sum.input_names = [node_exp.name]
# node_sum.output_names = [node_div.name]
# node_div.input_names = [node_exp.name, node_sum.name]
# node_div.output_names = [next_node_name]


class SoftmaxExpParser(OnnxComputeOperatorParser):
"""Parses a softmax node into a ComputationNode for the element-wise operation exp(row-m) where m is the max value
Expand Down
2 changes: 1 addition & 1 deletion stream/classes/opt/splitting/splitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def convert_outer_cn_loops(outer_cn_loops: list[tuple[str, int | str]], layer: C
new_layer_dim_size += 1
# Set the new loop size of the layer
logger.warn(
f"Layer {layer}: {layer_dim} {layer.layer_dim_sizes[layer_dim]} -> {new_layer_dim_size}"
f"Rounding {layer}: {layer_dim} {layer.layer_dim_sizes[layer_dim]} -> {new_layer_dim_size}"
)
layer.layer_dim_sizes[layer_dim] = new_layer_dim_size
outer_loops.append(TemporalLoop(layer_dim, loop_size))
Expand Down

0 comments on commit c7453ea

Please sign in to comment.