13 #ifndef EXATN_NUMERICS_TENSOR_OP_TRANSFORM_HPP_
14 #define EXATN_NUMERICS_TENSOR_OP_TRANSFORM_HPP_
16 #include "Identifiable.hpp"
18 #include "tensor_basic.hpp"
19 #include "tensor_operation.hpp"
21 #include "tensor_method.hpp"
39 virtual bool isSet()
const override;
43 runtime::TensorOpExecHandle * exec_handle)
override;
46 static std::unique_ptr<TensorOperation>
createNew();
48 void resetFunctor(std::shared_ptr<talsh::TensorFunctor<Identifiable>> functor){
53 int apply(talsh::Tensor & local_tensor){
54 if(functor_)
return functor_->apply(local_tensor);
60 std::shared_ptr<talsh::TensorFunctor<Identifiable>> functor_;
68 #endif //EXATN_NUMERICS_TENSOR_OP_TRANSFORM_HPP_