Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 380 for getOperation (0.15 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/chain.go

    func (admissionHandler chainAdmissionHandler) Admit(ctx context.Context, a Attributes, o ObjectInterfaces) error {
    	for _, handler := range admissionHandler {
    		if !handler.Handles(a.GetOperation()) {
    			continue
    		}
    		if mutator, ok := handler.(MutationInterface); ok {
    			err := mutator.Admit(ctx, a, o)
    			if err != nil {
    				return err
    			}
    		}
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 20 15:11:00 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  2. 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)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tpu_partitioned_op_conversion.cc

      llvm::SmallVector<TF::TPUReplicateMetadataOp, 4> metadata;
      getOperation()->walk(
          [&metadata](TF::TPUReplicateMetadataOp op) { metadata.push_back(op); });
    
      IntegerAttr num_cores_per_replica;
      if (metadata.size() == 1) {
        num_cores_per_replica = metadata.front().getNumCoresPerReplicaAttr();
      }
    
      auto result = getOperation()->walk([&num_cores_per_replica](Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_lowering_pass.cc

      target.addLegalDialect<TFL::TensorFlowLiteDialect>();
      target.addLegalDialect<arith::ArithDialect>();
    
      if (failed(applyPartialConversion(getOperation(), target,
                                        std::move(patterns)))) {
        getOperation().emitError("Composite lowering pass failed.");
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    // Creates an instance of the pass.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 23:16:05 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/graph_pruning.cc

    }
    
    void GraphPruningPass::runOnOperation() {
      for (const auto& op_name : ops_to_preserve_) {
        ops_to_preserve_ids_.insert(mlir::StringAttr::get(&getContext(), op_name));
      }
      if (!CanPruneGraph(getOperation())) return;
      getOperation().walk(
          [this](tf_executor::GraphOp graph) { PruneGraph(graph); });
    }
    
    // An op should be preserved if either its identifier is contained in
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/audit.go

    	if i == nil {
    		return i
    	}
    	return &auditHandler{Interface: i}
    }
    
    func (handler *auditHandler) Admit(ctx context.Context, a Attributes, o ObjectInterfaces) error {
    	if !handler.Interface.Handles(a.GetOperation()) {
    		return nil
    	}
    	if err := ensureAnnotationGetter(a); err != nil {
    		return err
    	}
    	var err error
    	if mutator, ok := handler.Interface.(MutationInterface); ok {
    		err = mutator.Admit(ctx, a, o)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 29 00:03:53 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables_test_pass.h

     public:
      LiftVariablesTestPass() { session_ = new FakeSession(); }
    
      ~LiftVariablesTestPass() override { delete session_; }
    
      void runOnOperation() override {
        ModuleOp module = getOperation();
        if (failed(LiftVariables(module, session_))) signalPassFailure();
      }
    
     private:
      Session* session_;
    };
    
    // This pass is only available in the tf-opt binary for testing.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 21 15:49:06 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  9. tests/integration/telemetry/api/testdata/attributegen.yaml

        - output_attribute: istio_responseClass
          match:
          - value: 2xx
            condition: response.code >= 200 && response.code <= 299
        - output_attribute: istio_operationId
          match:
          - value: getoperation
            condition: request.method == 'GET'
        - output_attribute: istio_grpcResponseStatus
          match:
          - value: OK
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 12 00:53:57 UTC 2024
    - 639 bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/add_functions_for_exported_names.cc

            f.removeResultAttr(i, a.getName());
          }
        }
      }
    }
    
    void AddFunctionsForExportedNamesPass::runOnOperation() {
      Block& module_body = getOperation().getRegion().front();
      for (auto f :
           llvm::make_early_inc_range(getOperation().getOps<func::FuncOp>())) {
        auto exported_names = GetExportedNames(f);
        if (exported_names.empty() || !f.isPublic()) continue;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 4.5K bytes
    - Viewed (0)
Back to top