Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 105 for GetOperation (0.41 sec)

  1. 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)
  2. 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)
  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/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)
  5. 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)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

                 << ")";
        }
      }
      return success();
    }
    
    void GraphOp::print(OpAsmPrinter &p) {
      p << ' ';
      p.printRegion(getOperation()->getRegion(0));
      p.printOptionalAttrDict(getOperation()->getAttrs());
    }
    
    ParseResult GraphOp::parse(OpAsmParser &parser, OperationState &result) {
      llvm::SMLoc loc = parser.getCurrentLocation();
    
      // Parse the body region.
    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/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)
  8. 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)
  9. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

        }
      }
    }
    
    void TpuV1BridgeExecutorIslandCoarsening::runOnOperation() {
      SymbolTable symbol_table(getOperation());
    
      // Map tpu cluster names to the functions that contain operations for this
      // cluster.
      DenseMap<StringRef, DenseSet<func::FuncOp>> tpu_funcs;
      for (func::FuncOp func_op : getOperation().getOps<func::FuncOp>()) {
        func_op.walk([&](Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tpu_device_propagation.cc

        func.getAllResultAttrs(tmp);
    
        for (const auto& res : tmp) {
          result_attrs.push_back(res.getValue().vec());
        }
      }
    
      mlir::Builder builder(func.getOperation());
    
      for (OpOperand& operand : fetch.getOperation()->getOpOperands()) {
        if (mlir::isa<tf_executor::ControlType>(operand.get().getType())) break;
        auto it = value_to_device.find(operand.get());
        if (it != value_to_device.end()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top