@@ -112,33 +112,37 @@ def serializeTilingSolution(
112112
113113 # Prepare replacement lists for the elements inside the operator representation,
114114 # for the cubes to be computed further down in this function
115+
116+ # ~~~~~ SEE ISSUE #134: https://github.com/pulp-platform/Deeploy/issues/134 ~~~~~
117+ # Freeze tiling input and output tiling for now
115118 replacements = {
116- "data_in_shape" : [],
117- "data_out_shape" : [],
118- "starts" : [[
119- 0 ,
120- ] * len (operatorRepresentation ['axes' ])] * len (outputCubes ),
121- "ends" : [],
119+ # "data_in_shape": [],
120+ # "data_out_shape": [],
121+ # "starts": [[
122+ # 0,
123+ # ] * len(operatorRepresentation['axes'])] * len(outputCubes),
124+ # "ends": [],
122125 "data_in_size" : [],
123126 }
124127
125128 replacementTypes = {
126- "data_in_shape" : [
127- PointerClass (uint16_t ),
128- PointerClass (uint16_t ),
129- PointerClass (uint16_t ),
130- PointerClass (uint16_t )
131- ],
132- "data_out_shape" : [
133- PointerClass (uint16_t ),
134- PointerClass (uint16_t ),
135- PointerClass (uint16_t ),
136- PointerClass (uint16_t )
137- ],
138- "starts" : PointerClass (uint16_t ),
139- "ends" : PointerClass (uint16_t ),
129+ # "data_in_shape": [
130+ # PointerClass(uint16_t),
131+ # PointerClass(uint16_t),
132+ # PointerClass(uint16_t),
133+ # PointerClass(uint16_t)
134+ # ],
135+ # "data_out_shape": [
136+ # PointerClass(uint16_t),
137+ # PointerClass(uint16_t),
138+ # PointerClass(uint16_t),
139+ # PointerClass(uint16_t)
140+ # ],
141+ # "starts": PointerClass(uint16_t),
142+ # "ends": PointerClass(uint16_t),
140143 "data_in_size" : PointerClass (uint16_t ),
141144 }
145+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
142146
143147 # Prepare loading schedule lists
144148 inputLoadSchedule = []
@@ -154,9 +158,14 @@ def serializeTilingSolution(
154158 new_ends .append (in_cube .offset [ax ] + in_cube .dims [ax ])
155159
156160 # Append replacement elements
157- replacements ["data_in_shape" ].append (list (in_cube .dims ).copy ())
158- replacements ["data_out_shape" ].append (list (out_cube .dims ).copy ())
159- replacements ["ends" ].append (new_ends )
161+
162+ # ~~~~~ SEE ISSUE #134: https://github.com/pulp-platform/Deeploy/issues/134 ~~~~~
163+ # Freeze tiling input and output tiling for now
164+ # replacements["data_in_shape"].append(list(in_cube.dims).copy())
165+ # replacements["data_out_shape"].append(list(out_cube.dims).copy())
166+ # replacements["ends"].append(new_ends)
167+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
168+
160169 replacements ["data_in_size" ].append (int (np .prod (in_cube .dims )))
161170
162171 # Append new cubes
0 commit comments