Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 144 for newFunc (0.17 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

      auto caller = MakeFuncCaller(builder, module.getLoc(), new_func, inputs);
    
      Block* block = new_func.addEntryBlock();
    
      for (Operation* op : topological_order) op->moveBefore(block, block->end());
    
      // Replace the 'inputs' values with the new function's arguments.
      for (auto p : llvm::zip(inputs, new_func.getArguments()))
        replaceAllUsesInRegionWith(std::get<0>(p), std::get<1>(p),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/envelope.go

    	// key ID related error codes for metrics
    	errKeyIDOKCode      ErrCodeKeyID = "ok"
    	errKeyIDEmptyCode   ErrCodeKeyID = "empty"
    	errKeyIDTooLongCode ErrCodeKeyID = "too_long"
    )
    
    // NowFunc is exported so tests can override it.
    var NowFunc = time.Now
    
    type StateFunc func() (State, error)
    type ErrCodeKeyID string
    
    type State struct {
    	Transformer value.Transformer
    
    	EncryptedObject kmstypes.EncryptedObject
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 00:23:50 UTC 2023
    - 18.7K bytes
    - Viewed (0)
  3. pkg/kubelet/nodestatus/setters_test.go

    				"Diff: %s", cmp.Diff(expectNode, node))
    		})
    	}
    
    }
    
    func TestReadyCondition(t *testing.T) {
    	now := time.Now()
    	before := now.Add(-time.Second)
    	nowFunc := func() time.Time { return now }
    
    	withCapacity := &v1.Node{
    		Status: v1.NodeStatus{
    			Capacity: v1.ResourceList{
    				v1.ResourceCPU:              *resource.NewMilliQuantity(2000, resource.DecimalSI),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 21:47:24 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  4. pkg/registry/core/persistentvolume/storage/storage_test.go

    	hostPathType := new(api.HostPathType)
    	*hostPathType = api.HostPathType(pathType)
    	return hostPathType
    }
    
    func validNewPersistentVolume(name string) *api.PersistentVolume {
    	now := persistentvolume.NowFunc()
    	pv := &api.PersistentVolume{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: name,
    		},
    		Spec: api.PersistentVolumeSpec{
    			Capacity: api.ResourceList{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. src/database/sql/sql.go

    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname drivers
    var drivers = make(map[string]driver.Driver)
    
    // nowFunc returns the current time; it's overridden in tests.
    var nowFunc = time.Now
    
    // Register makes a database driver available by the provided name.
    // If Register is called twice with the same name or if driver is nil,
    // it panics.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/native-binaries/cunit/groovy/libs/cunit/2.1-2/include/CUnit/TestDB.h

     *  returned if the function succeeds, or CUE_NOTEST if either pTest or
     *  pNewFunc is NULL.
     *
     *  @param pTest    Pointer to the test to modify (non-NULL).
     *  @param pNewFunc Pointer to function to use for test function (non-NULL).
     *  @return Returns CUE_NOTEST if pTest or pNewFunc is NULL, and CUE_SUCCESS 
     *          if all is well.
     */
    
    CU_EXPORT 
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 40.4K bytes
    - Viewed (0)
  7. callbacks/create.go

    				}
    			}
    			return called
    		})
    	}
    }
    
    // ConvertToCreateValues convert to create values
    func ConvertToCreateValues(stmt *gorm.Statement) (values clause.Values) {
    	curTime := stmt.DB.NowFunc()
    
    	switch value := stmt.Dest.(type) {
    	case map[string]interface{}:
    		values = ConvertMapToValuesForCreate(stmt, value)
    	case *map[string]interface{}:
    		values = ConvertMapToValuesForCreate(stmt, *value)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 08 03:29:55 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  8. src/database/sql/sql_test.go

    		t.Errorf("stats.OpenConnections = %d; want 0", got)
    	}
    }
    
    func TestConnMaxLifetime(t *testing.T) {
    	t0 := time.Unix(1000000, 0)
    	offset := time.Duration(0)
    
    	nowFunc = func() time.Time { return t0.Add(offset) }
    	defer func() { nowFunc = time.Now }()
    
    	db := newTestDB(t, "magicquery")
    	defer closeDB(t, db)
    
    	driver := db.Driver().(*fakeDriver)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssagen/ssa.go

    		}
    	}
    
    	fe := ssafn{
    		curfn: fn,
    		log:   printssa && ssaDumpStdout,
    	}
    	s.curfn = fn
    
    	cache := &ssaCaches[worker]
    	cache.Reset()
    
    	s.f = ssaConfig.NewFunc(&fe, cache)
    	s.config = ssaConfig
    	s.f.Type = fn.Type()
    	s.f.Name = name
    	s.f.PrintOrHtmlSSA = printssa
    	if fn.Pragma&ir.Nosplit != 0 {
    		s.f.NoSplit = true
    	}
    	s.f.ABI0 = ssaConfig.ABI0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

      auto caller = MakeFuncCaller(builder, module.getLoc(), new_func,
                                   inputs.getArrayRef(), flag_for_inlining);
    
      Block* block = new_func.addEntryBlock();
      for (Operation* op : topological_order) op->moveBefore(block, block->end());
    
      // Replace the 'inputs' values with the new function's arguments.
      for (auto p : llvm::zip(inputs, new_func.getArguments()))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
Back to top