Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 76 for closeFn (0.29 sec)

  1. pkg/controller/endpointslice/endpointslice_controller_test.go

    		t.Run(tc.name, func(t *testing.T) {
    			ns := metav1.NamespaceDefault
    			client, esController := newController(t, []string{"node-1"}, tc.batchPeriod)
    			stopCh := make(chan struct{})
    			defer close(stopCh)
    
    			_, ctx := ktesting.NewTestContext(t)
    			go esController.Run(ctx, 1)
    
    			esController.serviceStore.Add(&v1.Service{
    				ObjectMeta: metav1.ObjectMeta{Name: "foo", Namespace: ns},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 65.5K bytes
    - Viewed (0)
  2. cmd/erasure-object.go

    	}
    
    	return fi.ToObjectInfo(srcBucket, srcObject, srcOpts.Versioned || srcOpts.VersionSuspended), nil
    }
    
    // GetObjectNInfo - returns object info and an object
    // Read(Closer). When err != nil, the returned reader is always nil.
    func (er erasureObjects) GetObjectNInfo(ctx context.Context, bucket, object string, rs *HTTPRangeSpec, h http.Header, opts ObjectOptions) (gr *GetObjectReader, err error) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 78.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types/type.go

    	typeNoalg                  // suppress hash and eq algorithm generation
    	typeDeferwidth             // width computation has been deferred and type is on deferredTypeStack
    	typeRecur
    	typeIsShape  // represents a set of closely related types, for generics
    	typeHasShape // there is a shape somewhere in the type
    )
    
    func (t *Type) NotInHeap() bool  { return t.flags&typeNotInHeap != 0 }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

      });
      if (walk_result.wasInterrupted()) return mlir::failure();
      return mlir::success();
    }
    
    void ExtractOutsideCompilation::runOnOperation() {
      // Get runtime devices information from the closest parent module.
      auto module = getOperation();
      if (failed(CheckPreconditions(module))) signalPassFailure();
    
      mlir::TF::RuntimeDevices devices;
      if (failed(tensorflow::GetDevicesFromOp(module, &devices)))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  5. src/syscall/syscall_windows.go

    	var w uint32
    	switch whence {
    	case 0:
    		w = FILE_BEGIN
    	case 1:
    		w = FILE_CURRENT
    	case 2:
    		w = FILE_END
    	}
    	err = setFilePointerEx(fd, offset, &newoffset, w)
    	return
    }
    
    func Close(fd Handle) (err error) {
    	return CloseHandle(fd)
    }
    
    var (
    	Stdin  = getStdHandle(STD_INPUT_HANDLE)
    	Stdout = getStdHandle(STD_OUTPUT_HANDLE)
    	Stderr = getStdHandle(STD_ERROR_HANDLE)
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/mark_for_compilation_pass.cc

            resource_var_operation_node_ids_.push_back(
                *resource_var_operation_node_id);
          }
        }
    
        // Merges `other` into this cluster, and clears `other`.  This method is
        // closely tied with the implementation of `MarkForCompilationPassImpl`.
        void Merge(Cluster* other);
    
        // If this is a trivial cluster containing only one node then return the ID
        // of that node.  May not be called otherwise.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  7. cmd/erasure-healing_test.go

    			if err != nil {
    				t.Fatal(err)
    			}
    
    			firstGr, err := obj.GetObjectNInfo(ctx, bucket, object, nil, nil, ObjectOptions{NoLock: true})
    			if err != nil {
    				t.Fatal(err)
    			}
    			defer firstGr.Close()
    
    			firstHealedH := sha256.New()
    			_, err = io.Copy(firstHealedH, firstGr)
    			if err != nil {
    				t.Fatal(err)
    			}
    			firstHealedDataSha256 := firstHealedH.Sum(nil)
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 49K bytes
    - Viewed (0)
  8. cmd/peer-rest-server.go

    		return grid.NewRemoteErr(err)
    	}
    	var buf bytes.Buffer
    	enc := json.NewEncoder(&buf)
    	for {
    		select {
    		case entry, ok := <-ch:
    			if !ok {
    				return grid.NewRemoteErrString("console log channel closed")
    			}
    			if !entry.SendLog("", madmin.LogMask(mask)) {
    				continue
    			}
    			buf.Reset()
    			if err := enc.Encode(entry); err != nil {
    				return grid.NewRemoteErr(err)
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  9. pilot/pkg/networking/core/listener.go

    	}
    	accessLogBuilder.setListenerAccessLog(opts.push, opts.proxy, res, istionetworking.ListenerClassGateway)
    
    	return res
    }
    
    // isMatchAll returns true if this chain will match everything
    // This closely matches toFilterChainMatch
    func (chain *filterChainOpts) isMatchAll() bool {
    	return (len(chain.sniHosts) == 0 || slices.Contains(chain.sniHosts, "*")) &&
    		len(chain.applicationProtocols) == 0 &&
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

        // because abs(sin(pi * x)) = abs(sin(pi * abs(x))), it's good enough for
        // our purposes to use abs(frac(x)) = abs(x) - floor(abs(x)).
        //
        // Furthermore, pi * abs(frac(x)) loses precision when abs(frac(x)) is close
        // to 1.  To remedy this, we can use the fact that sin(pi * x) in the domain
        // [0, 1] is symmetric across the line Y=0.5.
        Value abs_input = rewriter.create<AbsOp>(loc, input);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
Back to top