Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 123 for getOperation (0.21 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/merge_control_flow.cc

                     const TF::SideEffectAnalysis::Info& side_effect_analysis) {
      // IfRegion ops must be in the same block.
      if (second_if.getOperation()->getBlock() !=
          first_if.getOperation()->getBlock()) {
        return false;
      }
      assert(first_if.getOperation()->isBeforeInBlock(second_if.getOperation()));
    
      llvm::SmallSetVector<Operation*, 4> destination_ops =
          GetAllOpsFromIf(first_if);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 07:31:01 UTC 2023
    - 25.9K bytes
    - Viewed (0)
  2. plugin/pkg/admission/noderestriction/admission.go

    		}
    		return nil
    
    	default:
    		return admission.NewForbidden(a, fmt.Errorf("unexpected operation %s", a.GetOperation()))
    	}
    }
    
    func (p *Plugin) admitPVCStatus(nodeName string, a admission.Attributes) error {
    	switch a.GetOperation() {
    	case admission.Update:
    		oldPVC, ok := a.GetOldObject().(*api.PersistentVolumeClaim)
    		if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc

          if (failed(MoveStandalonePreprocessingOp(&builder, getOperation(), op)))
            return signalPassFailure();
        }
        RewritePreprocessInputs(&builder, getOperation(), op);
      }
    
      // Handle ops with mini_batch_in_csr attribute.
      preprocess_ops.clear();
      getOperation().walk([&](Operation* op) {
        if (op->hasAttr(kMiniBatchCsrAttr)) {
          preprocess_ops.push_back(op);
        }
      });
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc

        rewriter.setInsertionPointToEnd(&func.getBody().front());
        rewriter.create<func::ReturnOp>(
            loc, executor_graph.getOperation()->getResults());
    
        rewriter.replaceOp(graph_func.getOperation(),
                           func.getOperation()->getResults());
    
        return success();
      }
    };
    
    class ConvertReturnOp : public OpConversionPattern<tfg::ReturnOp> {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/decompose_optionals.cc

        mlir::SymbolRefAttr sym = callable.dyn_cast<mlir::SymbolRefAttr>();
        auto symbol =
            mlir::SymbolTable::lookupNearestSymbolFrom(call.getOperation(), sym);
        if (!symbol) return failure();
        auto f = llvm::dyn_cast<mlir::func::FuncOp>(symbol);
    
        if (call.getOperation()->getNumOperands() !=
            f.getBody().front().getNumArguments()) {
          return failure();  // RemoteCall et al
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

          }
        }
    
        // Move inner ops from island to block containing graph.
        auto &island_body = island_op.GetBody().getOperations();
        Operation *operation = op.getOperation();
        operation->getBlock()->getOperations().splice(
            operation->getIterator(), island_body, island_body.begin(),
            std::prev(island_body.end()));
        rewriter.replaceOp(op, new_rets);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfr/passes/decompose.cc

        Operation* inlined_point = call_op.getOperation();
        Operation* after_inlined_point =
            &*std::next(Block::iterator(call_op.getOperation()));
    
        // Use the inliner to replace all the uses of the call_op by its
        // composition.
        if (failed(inlineCall(inliner,
                              cast<CallOpInterface>(call_op.getOperation()),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/layout_optimization.cc

              operand->get().getType() ==
                  ShuffleRankedTensorType(ranked_tranpose_type, permutation)) {
            TransposeOp transpose = tranpose_op;
            transpose.getOperation()->moveBefore(op);
            transpose.setOperand(0, operand->get());
            transpose.setOperand(1, permutation_op);
            transpose_ops->erase(it);
            return transpose;
          }
        }
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/post_quantize.cc

      LogicalResult matchAndRewrite(OpTy op,
                                    PatternRewriter& rewriter) const override {
        if (op.getOperation()->template hasTrait<OpTrait::IsTerminator>()) {
          return failure();
        }
        for (auto result : op.getOperation()->getOpResults()) {
          if (!result.use_empty()) {
            return failure();
          }
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/parallel_execute_to_islands.cc

        llvm::SmallVectorImpl<tf_executor::IslandOp>& executes,
        bool legacy_graph_export, int parallel_group_idx) {
      const int num_regions = parallel_execute_op.getOperation()->getNumRegions();
      executes.reserve(num_regions);
    
      for (int i : llvm::seq<int>(0, num_regions)) {
        Block& execute_block = parallel_execute_op.GetRegionBlockWithIndex(i);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 19 19:47:16 UTC 2023
    - 11.1K bytes
    - Viewed (0)
Back to top