/* * 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. */ #include #include #include namespace torch { namespace executor { namespace native { namespace { bool logical_xor(bool a, bool b) { return a != b; } } // namespace Tensor& logical_xor_out( KernelRuntimeContext& ctx, const Tensor& a, const Tensor& b, Tensor& out) { // @lint-ignore CLANGTIDY facebook-hte-CArray static constexpr const char op_name[] = "logical_xor.out"; return internal::logical_tensor_out(logical_xor, ctx, a, b, out); } } // namespace native } // namespace executor } // namespace torch