blob: a3bcbd7680ba27adf7eca44d5d60af0184038171 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef TENSORFLOW_KERNELS_NO_OP_H_
#define TENSORFLOW_KERNELS_NO_OP_H_
#include "tensorflow/core/framework/op_kernel.h"
namespace tensorflow {
class NoOp : public OpKernel {
public:
explicit NoOp(OpKernelConstruction* context) : OpKernel(context) {}
void Compute(OpKernelContext* context) override {}
bool IsExpensive() override { return false; }
};
} // namespace tensorflow
#endif // TENSORFLOW_KERNELS_NO_OP_H_
|