#ifndef TENSORFLOW_KERNELS_FILL_FUNCTOR_H_ #define TENSORFLOW_KERNELS_FILL_FUNCTOR_H_ #include "tensorflow/core/framework/tensor_types.h" #include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor" namespace tensorflow { namespace functor { template struct FillFunctor { // Computes on device "d": out = out.constant(in(0)), void operator()(const Device& d, typename TTypes::Flat out, typename TTypes::ConstScalar in); }; template struct SetZeroFunctor { // Computes on device "d": out = out.setZero(), void operator()(const Device& d, typename TTypes::Flat out); }; } // namespace functor } // namespace tensorflow #endif // TENSORFLOW_KERNELS_FILL_FUNCTOR_H_