forked from jiuyuan/InfiniTensor
24 lines
636 B
C++
24 lines
636 B
C++
#pragma once
|
|
#include "core/operator.h"
|
|
|
|
namespace infini {
|
|
class ConcatObj : public OperatorObj {
|
|
int dim;
|
|
|
|
public:
|
|
ConcatObj(GraphObj *graph, TensorVec inputs, Tensor output, int dim);
|
|
OP_CLONE(ConcatObj);
|
|
|
|
optional<vector<Shape>> inferShape(const TensorVec &inputs) const override;
|
|
|
|
std::string toString() const override;
|
|
int numInputs() const override { return inputs.size(); }
|
|
int numOutputs() const override { return 1; }
|
|
int getDim() const { return dim; }
|
|
|
|
private:
|
|
vector<int> getWorkloadVector() const override;
|
|
vector<int> getOpAttrVector() const override;
|
|
};
|
|
} // namespace infini
|