- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 79 for Xacc (0.07 sec)
-
staging/src/k8s.io/apiserver/pkg/storage/cacher/time_budget.go
t.Lock() defer t.Unlock() // budget accumulated since last access now := t.clock.Now() acc := now.Sub(t.last).Seconds() * t.refresh.Seconds() if acc < 0 { acc = 0 } // update current budget and store the current time if t.budget = t.budget + time.Duration(acc*1e9); t.budget > t.maxBudget { t.budget = t.maxBudget } t.last = now result := t.budget t.budget = time.Duration(0)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 2.6K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/internal/testdata/gen_saved_models.py
@def_function.function( input_signature=[tensor_spec.TensorSpec((), dtypes.float32)]) def compute(self, value): acc, _ = while_loop.while_loop( cond=lambda acc, i: i > 0, body=lambda acc, i: (acc + i, i - 1), loop_vars=(constant_op.constant(0.0), value)) return acc to_save = Module() saved_model.save( to_save, export_dir=os.path.join(base_dir, "SimpleWhileLoop"))
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 06 21:32:57 UTC 2023 - 3.4K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/builder/MessageBuilderHelper.java
} static Collection<String> pathTo(EdgeState edge, boolean includeLast) { List<List<EdgeState>> acc = Lists.newArrayListWithExpectedSize(1); pathTo(edge, new ArrayList<>(), acc, new HashSet<>()); List<String> result = Lists.newArrayListWithCapacity(acc.size()); for (List<EdgeState> path : acc) { EdgeState target = Iterators.getLast(path.iterator()); StringBuilder sb = new StringBuilder();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 14:19:34 UTC 2024 - 3.9K bytes - Viewed (0) -
testing/distributions-integ-tests/src/integTest/groovy/org/gradle/DistributionIntegritySpec.groovy
duplicateClasses.isEmpty() } private static def collectJars(TestFile file, Collection<File> acc = []) { if (file.name.endsWith('.jar')) { acc.add(file) } if (file.isDirectory()) { file.listFiles().each { f -> collectJars(f, acc) } } acc }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 3.1K bytes - Viewed (0) -
test/typeparam/issue48645b.go
// return true // } // return fn(r) // }) } return FromIterator[R](IteratorFunc[R](it)) } func Reduce[T, U any](s Stream[T], identity U, acc func(U, T) U) (r U) { r = identity s.Iterate(func(t T) bool { r = acc(r, t) return true }) return r } type myIterator struct { } func (myIterator) Iterate(fn func(int) bool) { } func main() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 1.4K bytes - Viewed (0) -
src/cmd/go/internal/generate/generate_test.go
{"$GOFILE", []string{"proc.go"}}, {"$GOPACKAGE", []string{"sys"}}, {"a $XXNOTDEFINEDXX b", []string{"a", "", "b"}}, {"/$XXNOTDEFINED/", []string{"//"}}, {"/$DOLLAR/", []string{"/$/"}}, {"yacc -o $GOARCH/yacc_$GOFILE", []string{"go", "tool", "yacc", "-o", runtime.GOARCH + "/yacc_proc.go"}}, } func TestGenerateCommandParse(t *testing.T) { dir := filepath.Join(testenv.GOROOT(t), "src", "sys") g := &Generator{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 20 14:09:12 UTC 2022 - 7.4K bytes - Viewed (0) -
src/math/big/float.go
} // Mode returns the rounding mode of x. func (x *Float) Mode() RoundingMode { return x.mode } // Acc returns the accuracy of x produced by the most recent // operation, unless explicitly documented otherwise by that // operation. func (x *Float) Acc() Accuracy { return x.acc } // Sign returns: // // -1 if x < 0 // 0 if x is ±0 // +1 if x > 0 func (x *Float) Sign() int {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 15:46:54 UTC 2024 - 44.5K bytes - Viewed (0) -
src/math/big/floatmarsh_test.go
} if rx.Mode() != mode { t.Errorf("transmission of %s's mode failed: got %s want %s", x, rx.Mode(), mode) } if rx.Acc() != tx.Acc() { t.Errorf("transmission of %s's accuracy failed: got %s want %s", x, rx.Acc(), tx.Acc()) } } } } } } func TestFloatCorruptGob(t *testing.T) { var buf bytes.Buffer
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 23 18:18:05 UTC 2023 - 4.5K bytes - Viewed (0) -
platforms/core-runtime/functional/src/test/groovy/org/gradle/internal/collect/PersistentListTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 09:24:00 UTC 2024 - 2.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/lists.go
return types.MaybeNoSuchOverloadErr(next) } if acc != nil { s := acc.Add(next) sum, ok := s.(traits.Adder) if !ok { // Should never happen for type checked CEL programs return types.MaybeNoSuchOverloadErr(s) } acc = sum } else { acc = nextAdder } } return acc.(ref.Val) } } func min() functions.UnaryOp {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 21:31:27 UTC 2023 - 9.2K bytes - Viewed (0)