XinJCheng / CSPN

Convolutional Spatial Propagation Network
496 stars 92 forks source link

cspn iteration Segmentation fault (core dumped) #16

Closed LINA-lln closed 5 years ago

LINA-lln commented 5 years ago

If I use cspn.py in my code directly, my python code will have an error Segmentation fault (core dumped) if I change the fllowing code range(16) to range(1), it will run with no error

        for i in range(2):
            # one propagation
            spn_kernel = 3
            elewise_max_gate1 = self.eight_way_propagation(gate1_w1_cmb, result_depth, spn_kernel)
            elewise_max_gate2 = self.eight_way_propagation(gate2_w1_cmb, result_depth, spn_kernel)
            elewise_max_gate3 = self.eight_way_propagation(gate3_w1_cmb, result_depth, spn_kernel)
            elewise_max_gate4 = self.eight_way_propagation(gate4_w1_cmb, result_depth, spn_kernel)
            elewise_max_gate5 = self.eight_way_propagation(gate5_w1_cmb, result_depth, spn_kernel)
            elewise_max_gate6 = self.eight_way_propagation(gate6_w1_cmb, result_depth, spn_kernel)
            elewise_max_gate7 = self.eight_way_propagation(gate7_w1_cmb, result_depth, spn_kernel)
            elewise_max_gate8 = self.eight_way_propagation(gate8_w1_cmb, result_depth, spn_kernel)

What happened to this code? Hope your reply, thank you

XinJCheng commented 5 years ago

we have updated it, thanks for your attention.