16 static constexpr std::size_t kNumElem =
17 (0 + ... + std::size_t{std::is_same_v<const TensorImpl*, Args>});
20 TensorImpl& out()
noexcept {
return *outTen_; }
21 tensor_list& in()
noexcept {
return inTens_; }
23 LMP_INTERNAL_ASSERT(expand_) <<
"Must have expand = True to get offset";
24 return outOffset_.get();
26 bool expand()
const noexcept {
return expand_; }
31 std::vector<size_t> outShape_;
34 std::unique_ptr<OffsetUtil> outOffset_;
35 std::unique_ptr<TensorImpl> outTen_;