1/*
2 * Copyright (c) Facebook, Inc. and its affiliates.
3 * All rights reserved.
4 *
5 * This source code is licensed under the BSD-style license found in the
6 * LICENSE file in the root directory of this source tree.
7 */
8
9#include <stdlib.h>
10
11#include <qnnpack.h>
12#include <qnnpack/operator.h>
13
14
15enum qnnp_status qnnp_delete_operator(qnnp_operator_t op)
16{
17 if (op == NULL) {
18 return qnnp_status_invalid_parameter;
19 }
20
21 free(op->indirection_buffer);
22 free(op->packed_weights);
23 free(op->a_sum);
24 free(op->zero_buffer);
25 free(op->lookup_table);
26 free(op);
27 return qnnp_status_success;
28}
29