Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for getCalled (0.25 sec)

  1. pkg/registry/core/service/portallocator/controller/repair_test.go

    	"k8s.io/kubernetes/pkg/registry/core/service/portallocator"
    )
    
    type mockRangeRegistry struct {
    	getCalled bool
    	item      *api.RangeAllocation
    	err       error
    
    	updateCalled bool
    	updated      *api.RangeAllocation
    	updateErr    error
    }
    
    func (r *mockRangeRegistry) Get() (*api.RangeAllocation, error) {
    	r.getCalled = true
    	return r.item, r.err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  2. pkg/registry/core/service/ipallocator/controller/repair_test.go

    	netutils "k8s.io/utils/net"
    )
    
    type mockRangeRegistry struct {
    	getCalled bool
    	item      *api.RangeAllocation
    	err       error
    
    	updateCalled bool
    	updated      *api.RangeAllocation
    	updateErr    error
    }
    
    func (r *mockRangeRegistry) Get() (*api.RangeAllocation, error) {
    	r.getCalled = true
    	return r.item, r.err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  3. internal/grid/grid_test.go

    				started := time.Now()
    				dl, _ := ctx.Deadline()
    				if testing.Verbose() {
    					fmt.Println(GetCaller(ctx).Name, "Server deadline:", time.Until(dl))
    				}
    				<-ctx.Done()
    				serverCanceled <- time.Since(started)
    				if testing.Verbose() {
    					fmt.Println(GetCaller(ctx).Name, "Server Context canceled with", ctx.Err(), "after", time.Since(started))
    				}
    				return nil
    			},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime.go

    	// A negative or zero duration causes time.Sleep to return immediately.
    	// If the time moves backwards for any reason, do nothing.
    	time.Sleep(r.minPeriod - d)
    }
    
    // GetCaller returns the caller of the function that calls it.
    func GetCaller() string {
    	var pc [1]uintptr
    	runtime.Callers(3, pc[:])
    	f := runtime.FuncForPC(pc[0])
    	if f == nil {
    		return "Unable to find caller"
    	}
    	return f.Name()
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  5. platforms/software/resources-s3/src/main/java/org/gradle/internal/resource/transport/aws/s3/S3Client.java

                String errorCode = e.getErrorCode();
                if (null != errorCode && errorCode.equalsIgnoreCase("NoSuchKey")) {
                    return null;
                }
                throw ResourceExceptions.getFailed(uri, e);
            }
        }
    
        private void configureClient(S3RegionalResource s3RegionalResource) {
            Optional<URI> endpoint = s3ConnectionProperties.getEndpoint();
            if (endpoint.isPresent()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

        const llvm::StringMap<Attribute>& derived_attrs) const {
      // Create the new op
      Location loc = call_op.getLoc();
      rewriter.setInsertionPointAfter(call_op);
      std::string tf_op_name = GetTFOpName(call_op.getCallee());
      OperationState new_state(loc, tf_op_name, inputs, output_types, attr_list);
      Operation* new_op = rewriter.create(new_state);
      if (materialize_derived_attrs_) {
        for (const auto& attr : derived_attrs) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc

        if (!MatchCallArgs(first_call.value(), second_call.value(), arg_matcher))
          return;
    
        can_transform = true;
        callee_names = {first_call.value().getCallee(),
                        second_call.value().getCallee()};
      }
    };
    
    // Transform IfRegionOp to IfOp.
    LogicalResult RegionControlFlowToFunctional::ConvertIfOp(
        SymbolTableCollection& symbol_table, IfRegionOp if_region) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

      new_result_types.push_back(token.getType());
      auto new_call = builder.create<func::CallOp>(
          call.getLoc(), new_result_types,
          new_symbol ? *new_symbol : call.getCallee(), new_operands);
    
      for (auto results : llvm::zip(call.getResults(), new_call.getResults()))
        std::get<0>(results).replaceAllUsesWith(std::get<1>(results));
      call.erase();
      return new_call.getResults().back();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  9. internal/grid/handlers.go

    type RemoteClient struct {
    	Name string
    }
    
    type (
    	ctxCallerKey   = struct{}
    	ctxSubrouteKey = struct{}
    )
    
    // GetCaller returns caller information from contexts provided to handlers.
    func GetCaller(ctx context.Context) *RemoteClient {
    	val, _ := ctx.Value(ctxCallerKey{}).(*RemoteClient)
    	return val
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfr/passes/decompose.cc

      // The inliner only inlines the TFR call op.
      bool changed = false;
      auto walk_result = func.walk([&](CallOp call_op) {
        auto callee = table.lookup<TFRFuncOp>(call_op.getCallee());
        if (!callee || callee.isExternal()) return WalkResult::advance();
    
        // Record the boundary of the inlined operations. The inlined operation will
        // be inserted between these two operations.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
Back to top