blob: 2f69ba368958e259ff77d8e6a01a4c7c813877d9 [file] [log] [blame] [edit]
// Copyright (c) Facebook, Inc. and its affiliates.
// All rights reserved.
//
// Copyright 2019 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include <stdlib.h>
#include "include/xnnpack.h"
#include "src/xnnpack/allocator.h"
#include "src/xnnpack/log.h"
#include "src/xnnpack/operator.h"
#include "src/xnnpack/operator-utils.h"
#include "src/xnnpack/params.h"
enum xnn_status xnn_delete_operator(xnn_operator_t op)
{
enum xnn_status status = xnn_destroy_operator(op);
if (status != xnn_status_success) {
return status;
}
xnn_release_simd_memory(op);
return status;
}