Program Listing for File tensor_list_from_tensor.h
↰ Return to documentation for file (include/converter/include/ops/tensor_list_from_tensor.h
)
#ifndef MINDSPORE_CORE_OPS_TENSOR_LIST_FROM_TENSOR_H_
#define MINDSPORE_CORE_OPS_TENSOR_LIST_FROM_TENSOR_H_
#include <memory>
#include <vector>
#include "mindapi/base/types.h"
#include "ops/base_operator.h"
namespace mindspore {
namespace ops {
constexpr auto kNameTensorListFromTensor = "TensorListFromTensor";
class MIND_API TensorListFromTensor : public BaseOperator {
public:
MIND_API_BASE_MEMBER(TensorListFromTensor);
TensorListFromTensor() : BaseOperator(kNameTensorListFromTensor) {}
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;
};
MIND_API abstract::AbstractBasePtr TensorListFromTensorInfer(const abstract::AnalysisEnginePtr &,
const PrimitivePtr &primitive,
const std::vector<abstract::AbstractBasePtr> &input_args);
} // namespace ops
} // namespace mindspore
#endif // MINDSPORE_CORE_OPS_TENSOR_LIST_FROM_TENSOR_H_