Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for computeHash (0.14 sec)

  1. src/runtime/map_test.go

    	vals := make([]val, 0, len(m))
    	runtime.MapValues(m, unsafe.Pointer(&vals))
    	for _, v := range vals {
    		if len(v.s) != 1 {
    			t.Errorf("len(v.s) == %d, want 1", len(v.s))
    		}
    	}
    }
    
    func computeHash() uintptr {
    	var v struct{}
    	return runtime.MemHash(unsafe.Pointer(&v), 0, unsafe.Sizeof(v))
    }
    
    func subprocessHash(t *testing.T, env string) uintptr {
    	t.Helper()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  2. pkg/controller/controller_utils_test.go

    			template:            &v1.PodTemplateSpec{},
    			collisionCount:      nil,
    			otherCollisionCount: &maxCollisionCount,
    		},
    	}
    
    	for _, test := range tests {
    		hash := ComputeHash(test.template, test.collisionCount)
    		otherHash := ComputeHash(test.template, test.otherCollisionCount)
    
    		assert.NotEqual(t, hash, otherHash, "expected different hashes but got the same: %d", hash)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  3. pkg/controller/daemon/update.go

    func (dsc *DaemonSetsController) snapshot(ctx context.Context, ds *apps.DaemonSet, revision int64) (*apps.ControllerRevision, error) {
    	patch, err := getPatch(ds)
    	if err != nil {
    		return nil, err
    	}
    	hash := controller.ComputeHash(&ds.Spec.Template, ds.Status.CollisionCount)
    	name := ds.Name + "-" + hash
    	history := &apps.ControllerRevision{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:            name,
    			Namespace:       ds.Namespace,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 16:53:53 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

          }
        }
      }
    }
    
    Status Exporter::AddInstructionNode(Operation* inst) {
      std::unique_ptr<NodeDef> node_def;
      int graph_hash_value = graph_regularization::ComputeHash(graphdef_);
      auto name = op_to_name_.GetUniqueName(inst, graph_hash_value);
      // Convert registered TF ops to NodeDef. Only registered ops are handled to
      // ensure that PopulateDerivedAttrs adds the correct attributes.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

          }
        }
      }
    }
    
    Status Exporter::AddInstructionNode(Operation* inst) {
      std::unique_ptr<NodeDef> node_def;
      int graph_hash_value = graph_regularization::ComputeHash(graphdef_);
      auto name = op_to_name_.GetUniqueName(inst, graph_hash_value);
      // Convert registered TF ops to NodeDef. Only registered ops are handled to
      // ensure that PopulateDerivedAttrs adds the correct attributes.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  6. pkg/controller/daemon/daemon_controller_test.go

    	// Add hash unique label to the pod
    	newLabels := label
    	var podSpec v1.PodSpec
    	// Copy pod spec from DaemonSet template, or use a default one if DaemonSet is nil
    	if ds != nil {
    		hash := controller.ComputeHash(&ds.Spec.Template, ds.Status.CollisionCount)
    		newLabels = labelsutil.CloneAndAddLabel(label, apps.DefaultDaemonSetUniqueLabelKey, hash)
    		podSpec = ds.Spec.Template.Spec
    	} else {
    		podSpec = v1.PodSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  7. src/cmd/vendor/github.com/google/pprof/internal/binutils/binutils.go

    	isData   bool
    	// Mapping information. Relevant only for ELF files, nil otherwise.
    	m *elfMapping
    }
    
    // computeBase computes the relocation base for the given binary file only if
    // the elfMapping field is set. It populates the base and isData fields and
    // returns an error.
    func (f *file) computeBase(addr uint64) error {
    	if f == nil || f.m == nil {
    		return nil
    	}
    	if addr < f.m.start || addr >= f.m.limit {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 22.3K bytes
    - Viewed (0)
Back to top