Program Listing for File tensor_list_reserve.h

Return to documentation for file (include/converter/include/ops/tensor_list_reserve.h)

#ifndef MINDSPORE_CORE_OPS_TENSOR_LIST_RESERVE_H_
#define MINDSPORE_CORE_OPS_TENSOR_LIST_RESERVE_H_
#include <memory>
#include "mindapi/base/types.h"
#include "ops/base_operator.h"

namespace mindspore {
namespace ops {
constexpr auto kNameTensorListReserve = "TensorListReserve";
class MIND_API TensorListReserve : public BaseOperator {
 public:
  MIND_API_BASE_MEMBER(TensorListReserve);
  TensorListReserve() : BaseOperator(kNameTensorListReserve) {}

  void Init(const int64_t element_dtype, const int64_t shape_type);

  void set_element_dtype(const int64_t element_dtype);

  void set_shape_type(const int64_t shape_type);

  int64_t get_element_dtype() const;

  int64_t get_shape_type() const;
};
}  // namespace ops
}  // namespace mindspore

#endif  // MINDSPORE_CORE_OPS_TENSOR_LIST_RESERVE_H_