forked from mindspore-Ecosystem/mindspore
Addressing comments
This commit is contained in:
parent
a4ef5b26a1
commit
6af4e7c226
|
@ -23,7 +23,7 @@ namespace mindspore {
|
|||
namespace dataset {
|
||||
namespace api {
|
||||
|
||||
Execute::Execute(const std::shared_ptr<TensorOperation> &op) : op_(std::move(op)) {}
|
||||
Execute::Execute(std::shared_ptr<TensorOperation> op) : op_(std::move(op)) {}
|
||||
|
||||
std::shared_ptr<tensor::MSTensor> Execute::operator()(std::shared_ptr<tensor::MSTensor> input) {
|
||||
// Build the op
|
||||
|
|
|
@ -30,10 +30,11 @@ class TensorOp;
|
|||
|
||||
namespace api {
|
||||
|
||||
// class to run tensor operations in eager mode
|
||||
class Execute {
|
||||
public:
|
||||
/// \brief Constructor
|
||||
explicit Execute(const std::shared_ptr<TensorOperation> &op);
|
||||
explicit Execute(std::shared_ptr<TensorOperation> op);
|
||||
|
||||
/// \brief callable function to execute the TensorOperation in eager mode
|
||||
/// \param[inout] input - the tensor to be transformed
|
||||
|
|
Loading…
Reference in New Issue