1 /* 2 * Copyright (c) Meta Platforms, Inc. and 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 <executorch/kernels/test/FunctionHeaderWrapper.h> // Declares the operator 10 #include <executorch/kernels/test/TestUtil.h> 11 #include <executorch/kernels/test/supported_features.h> 12 #include <executorch/runtime/core/exec_aten/exec_aten.h> 13 #include <executorch/runtime/core/exec_aten/testing_util/tensor_factory.h> 14 #include <executorch/runtime/core/exec_aten/testing_util/tensor_util.h> 15 16 #include <gtest/gtest.h> 17 18 using namespace ::testing; 19 20 class OpAliasCopyTest : public OperatorTest { 21 protected: op_alias_copy_out(const exec_aten::Tensor & self,exec_aten::Tensor & out)22 exec_aten::Tensor& op_alias_copy_out( 23 const exec_aten::Tensor& self, 24 exec_aten::Tensor& out) { 25 return torch::executor::aten::alias_copy_outf(context_, self, out); 26 } 27 }; 28