onnx2keras icon indicating copy to clipboard operation
onnx2keras copied to clipboard

Fix change_ordering=True for global average pool

Open Vozf opened this issue 3 years ago • 0 comments

Currently change_ordering=True doesn't conver global average pool. With the addition of argument axis to the target function target_func will fall under this condition https://github.com/nerox8664/onnx2keras/blob/b5d77c0920eeefef86ea309d7776452a85ec454b/onnx2keras/converter.py#L242 And later conversion here. Sorry didn't test on master, but tested on the latest pypi release and structure is a little changed in a new code https://github.com/nerox8664/onnx2keras/blob/b5d77c0920eeefef86ea309d7776452a85ec454b/onnx2keras/converter.py#L271

Vozf avatar Mar 19 '21 20:03 Vozf