File size: 533 Bytes
b22e03e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// SPDX-License-Identifier: Apache-2.0

#include <torch/all.h>
#include <torch/library.h>

#include "registration.h"
#include "torch_binding.h"

torch::Tensor flashrt_training_package_marker(torch::Tensor x) { return x; }

TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, ops) {
  ops.def("_flashrt_training_package_marker(Tensor x) -> Tensor");
  ops.impl("_flashrt_training_package_marker",
           c10::DispatchKey::CompositeExplicitAutograd,
           &flashrt_training_package_marker);
}

REGISTER_EXTENSION(TORCH_EXTENSION_NAME)