(self)
| 219 | @register_class |
| 220 | class Softmax(CaffeOpExporter): |
| 221 | def set_attr(self): |
| 222 | axis = refine_value(self.op.attributes.get('axis', -1)) |
| 223 | if not (axis == -1 or axis == len(self.op.inputs[0].shape) - 1): |
| 224 | logger.warning(f'Converting to caffe Softmax, the axis={axis}, which is not the last axis. ' |
| 225 | 'This may result to incorrect caffe model') |
| 226 | self.layer.softmax_param.axis = axis |
| 227 | |
| 228 | |
| 229 | @register_class |
nothing calls this directly
no test coverage detected