-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolve XT_KERNEL_CHECK header file and BUCK dep (#7529)
Summary: Pull Request resolved: #7529 - Apply buck fix to Cadence's diff. - resolved duplicate work internally - fixed naming of mean Reviewed By: hsharma35 Differential Revision: D67875050
- Loading branch information
1 parent
c430cc2
commit 7a25939
Showing
4 changed files
with
16 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
/* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
#pragma once | ||
|
||
|
||
#include <executorch/runtime/core/exec_aten/util/tensor_util.h> | ||
|
||
#define XT_KERNEL_CHECK(ctx, out, kernel, ...) \ | ||
const auto ret = kernel(__VA_ARGS__); \ | ||
ET_KERNEL_CHECK_MSG( \ | ||
ctx, \ | ||
ret == 0, \ | ||
InvalidArgument, \ | ||
out, \ | ||
"Failed to run kernel: " #kernel "(" #__VA_ARGS__ ")"); | ||
"Failed to run kernel: " #kernel "(" #__VA_ARGS__ ")"); |
This file was deleted.
Oops, something went wrong.