def extract(node: Node): attrs = {'axis': node.pb.bias_param.axis} embed_input(attrs, 1, 'bias', node.model_pb.blobs[0].data, 'biases') Add.update_node_stat(node, attrs) return __class__.enabled
def extract(node): axis = onnx_attr(node, 'axis', 'i', default=None) Add.update_node_stat(node, {'axis': axis}) return __class__.enabled