18 #ifndef EXATN_RUNTIME_TENSOR_NODE_EXECUTOR_HPP_
19 #define EXATN_RUNTIME_TENSOR_NODE_EXECUTOR_HPP_
21 #include "Identifiable.hpp"
23 #include "tensor_op_factory.hpp"
50 TensorOpExecHandle * exec_handle) = 0;
52 TensorOpExecHandle * exec_handle) = 0;
54 TensorOpExecHandle * exec_handle) = 0;
56 TensorOpExecHandle * exec_handle) = 0;
58 TensorOpExecHandle * exec_handle) = 0;
61 virtual bool sync(TensorOpExecHandle op_handle,
63 bool wait =
false) = 0;
67 const std::vector<std::pair<DimOffset,DimExtent>> & slice_spec) = 0;
69 virtual std::shared_ptr<TensorNodeExecutor> clone() = 0;
75 #endif //EXATN_RUNTIME_TENSOR_NODE_EXECUTOR_HPP_
Definition: tensor.hpp:63
Definition: tensor_node_executor.hpp:29
virtual std::shared_ptr< talsh::Tensor > getLocalTensor(const numerics::Tensor &tensor, const std::vector< std::pair< DimOffset, DimExtent >> &slice_spec)=0
virtual bool sync(TensorOpExecHandle op_handle, int *error_code, bool wait=false)=0
Definition: DriverClient.hpp:10
Definition: tensor_op_add.hpp:21
Definition: Identifiable.hpp:18
virtual void initialize()=0
Definition: tensor_op_destroy.hpp:21
Definition: Identifiable.hpp:9
virtual int execute(numerics::TensorOpCreate &op, TensorOpExecHandle *exec_handle)=0
Definition: tensor_op_contract.hpp:22
Definition: tensor_op_create.hpp:21
Definition: tensor_node_executor.hpp:36