| 624 | /* f{{{ ======================= Subtensor ======================= */ |
| 625 | |
| 626 | Subtensor::Subtensor( |
| 627 | VarNode* inp, const IndexDesc& desc, const OperatorNodeConfig& config) |
| 628 | : Super({inp->owner_graph(), config, "subtensor", {inp}}, inp, nullptr, desc, |
| 629 | true) { |
| 630 | output(0)->add_flag(VarNode::Flag::ALLOW_EMPTY_SHAPE); |
| 631 | } |
| 632 | |
| 633 | SymbolVar Subtensor::make( |
| 634 | SymbolVar inp, const IndexDesc& desc, const OperatorNodeConfig& config) { |