parent
11d12f03a8
commit
622c472edf
|
|
@ -48,6 +48,8 @@ class Operation {
|
|||
uint32_t accumulator_bits = 0);
|
||||
std::unique_ptr<OpImpl>& impl();
|
||||
const std::unique_ptr<OpImpl>& impl() const;
|
||||
const uint32_t& uid() const;
|
||||
|
||||
virtual const std::vector<std::shared_ptr<Tensor>> ConstantInputsTensor() const;
|
||||
|
||||
protected:
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ Operation::~Operation() {}
|
|||
|
||||
std::unique_ptr<OpImpl>& Operation::impl() { return impl_; }
|
||||
const std::unique_ptr<OpImpl>& Operation::impl() const { return impl_; }
|
||||
const uint32_t& Operation::uid() const { return impl_->node()->uid; }
|
||||
|
||||
Operation& Operation::BindInput(const std::shared_ptr<Tensor>& tensor) {
|
||||
impl_->BindInput(tensor);
|
||||
|
|
|
|||
Loading…
Reference in New Issue