Implicitly convert a list of outputs to a list of inputs. This is useful to write code such as ops::Concat(ops::Split(x, 4)).
| 259 | /// Implicitly convert a list of outputs to a list of inputs. This is useful |
| 260 | /// to write code such as ops::Concat(ops::Split(x, 4)). |
| 261 | InputList(const OutputList& out) { // NOLINT(runtime/explicit) |
| 262 | for (auto const& x : out) { |
| 263 | inputs_.push_back(x); |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | InputList( |
| 268 | const std::initializer_list<Input>& inputs) // NOLINT(runtime/explicit) |