[GPU] Fix a bug of graph optimization (#12901)
+ Use program_node to find weight node of convolution at eltwise shrinking
This commit is contained in:
parent
ace759c74c
commit
d8b6f5485b
@ -55,8 +55,7 @@ void eltwise_shrinking::run(program& p) {
|
||||
break;
|
||||
}
|
||||
|
||||
auto weights_node_ptr = p.get_node_ptr(conv->weights[0]);
|
||||
auto filter_size = weights_node_ptr->get_output_layout().get_tensor();
|
||||
auto filter_size = user->as<convolution>().weights().get_output_layout().get_tensor();
|
||||
// make sure this is conv 1x1
|
||||
if (filter_size.spatial[0] != 1 || filter_size.spatial[1] != 1 || conv->stride.size() != 2) {
|
||||
can_shrink = false;
|
||||
|
Loading…
Reference in New Issue
Block a user