Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 38 for all_ones (0.13 sec)

  1. src/cmd/cgo/internal/test/issue1435.go

    // #include <unistd.h>
    // #include <sys/types.h>
    //
    // pthread_t *t = NULL;
    // pthread_mutex_t mu;
    // int nts = 0;
    // int all_done = 0;
    //
    // static void *aFn(void *vargp) {
    //   int done = 0;
    //   while (!done) {
    //     usleep(100);
    //     pthread_mutex_lock(&mu);
    //     done = all_done;
    //     pthread_mutex_unlock(&mu);
    //   }
    //   return NULL;
    // }
    //
    // void trial(int argc) {
    //   int i;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 28 21:31:41 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/quantization/quantization_context.cc

        }
      });
    }
    
    std::vector<quantfork::QuantizeRegionOp> QuantizeContext::GetAllOps() {
      std::vector<quantfork::QuantizeRegionOp> all_ops;
      all_ops.reserve(128);
      func_.walk([&](quantfork::QuantizeRegionOp op) { all_ops.push_back(op); });
      return all_ops;
    }
    
    KernelSpecs::Signature QuantizeContext::GetSignature(
        quantfork::QuantizeRegionOp op) {
      KernelSpecs::Signature signature;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. pkg/controller/nodelifecycle/node_lifecycle_controller.go

    	}
    }
    
    // classifyNodes classifies the allNodes to three categories:
    //  1. added: the nodes that in 'allNodes', but not in 'knownNodeSet'
    //  2. deleted: the nodes that in 'knownNodeSet', but not in 'allNodes'
    //  3. newZoneRepresentatives: the nodes that in both 'knownNodeSet' and 'allNodes', but no zone states
    func (nc *Controller) classifyNodes(allNodes []*v1.Node) (added, deleted, newZoneRepresentatives []*v1.Node) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/merge_control_flow.cc

    llvm::SmallSetVector<Operation*, 4> GetAllOpsFromIf(TF::IfRegionOp if_op) {
      llvm::SmallSetVector<Operation*, 4> all_ops;
      all_ops.insert(if_op);
      for (Operation& op : if_op.getThenBranch().front()) {
        all_ops.insert(&op);
      }
      for (Operation& op : if_op.getElseBranch().front()) {
        all_ops.insert(&op);
      }
      return all_ops;
    }
    
    // Returns whether it is safe to merge `second_if` IfRegion into `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)
  5. src/internal/profile/profile.go

    	if len(p.SampleType) != len(ratios) {
    		return fmt.Errorf("mismatched scale ratios, got %d, want %d", len(ratios), len(p.SampleType))
    	}
    	allOnes := true
    	for _, r := range ratios {
    		if r != 1 {
    			allOnes = false
    			break
    		}
    	}
    	if allOnes {
    		return nil
    	}
    	for _, s := range p.Sample {
    		for i, v := range s.Value {
    			if ratios[i] != 1 {
    				s.Value[i] = int64(float64(v) * ratios[i])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 17:57:40 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  6. build/pause/Makefile

    OSVERSION ?= 1809 ltsc2022
    
    # The output type could either be docker (local), or registry.
    # If it is registry, it will also allow us to push the Windows images.
    OUTPUT_TYPE ?= docker
    
    ALL_OS = linux windows
    ALL_ARCH.linux = amd64 arm arm64 ppc64le s390x
    ALL_OS_ARCH.linux = $(foreach arch, ${ALL_ARCH.linux}, linux-$(arch))
    ALL_ARCH.windows = amd64
    ALL_OSVERSIONS.windows := 1809 ltsc2022
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 19:31:40 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. src/cmd/vendor/github.com/google/pprof/profile/profile.go

    	if len(p.SampleType) != len(ratios) {
    		return fmt.Errorf("mismatched scale ratios, got %d, want %d", len(ratios), len(p.SampleType))
    	}
    	allOnes := true
    	for _, r := range ratios {
    		if r != 1 {
    			allOnes = false
    			break
    		}
    	}
    	if allOnes {
    		return nil
    	}
    	fillIdx := 0
    	for _, s := range p.Sample {
    		keepSample := false
    		for i, v := range s.Value {
    			if ratios[i] != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/interface.go

    }
    
    func (p *PreFilterResult) AllNodes() bool {
    	return p == nil || p.NodeNames == nil
    }
    
    func (p *PreFilterResult) Merge(in *PreFilterResult) *PreFilterResult {
    	if p.AllNodes() && in.AllNodes() {
    		return nil
    	}
    
    	r := PreFilterResult{}
    	if p.AllNodes() {
    		r.NodeNames = in.NodeNames.Clone()
    		return &r
    	}
    	if in.AllNodes() {
    		r.NodeNames = p.NodeNames.Clone()
    		return &r
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  9. pkg/scheduler/schedule_one.go

    		}
    		// Nominated node passes all the filters, scheduler is good to assign this node to the pod.
    		if len(feasibleNodes) != 0 {
    			return feasibleNodes, diagnosis, nil
    		}
    	}
    
    	nodes := allNodes
    	if !preRes.AllNodes() {
    		nodes = make([]*framework.NodeInfo, 0, len(preRes.NodeNames))
    		for nodeName := range preRes.NodeNames {
    			// PreRes may return nodeName(s) which do not exist; we verify
    			// node exists in the Snapshot.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 13:28:08 UTC 2024
    - 43.4K bytes
    - Viewed (0)
  10. operator/cmd/mesh/testdata/manifest-generate/output/all_on.golden-show-in-gh-pull-request.yaml

    John Howard <******@****.***> 1704863403 -0800
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 10 05:10:03 UTC 2024
    - 506.8K bytes
    - Viewed (0)
Back to top