- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 69 for newErrs (0.14 sec)
-
src/cmd/go/internal/work/gc.go
func toolVerify(a *Action, b *Builder, p *load.Package, newTool string, ofile string, args []any) error { newArgs := make([]any, len(args)) copy(newArgs, args) newArgs[1] = base.Tool(newTool) newArgs[3] = ofile + ".new" // x.6 becomes x.6.new if err := b.Shell(a).run(p.Dir, p.ImportPath, nil, newArgs...); err != nil { return err } data1, err := os.ReadFile(ofile) if err != nil { return err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:37:44 UTC 2024 - 23K bytes - Viewed (0) -
pkg/kube/krt/collection.go
for key := range allKeys { // Find new O object newRes, newExists := results[key] // Find the old O object oldRes, oldExists := h.collectionState.outputs[key] e := Event[O]{} if newExists && oldExists { if equal(newRes, oldRes) { // NOP change, skip continue } e.Event = controllers.EventUpdate e.New = &newRes e.Old = &oldRes
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 10 23:33:56 UTC 2024 - 19.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc
for (auto res : llvm::enumerate(call_op.getResultTypes())) { Type res_type = res.value(); if (mlir::dyn_cast<TFRTensorType>(res_type)) { Value new_res = new_op->getResult(res.index()); auto casted = rewriter.create<CastOp>(loc, res_type, new_res); new_results.push_back(casted.getOut()); } else if (auto list_type = mlir::dyn_cast<TFRTensorListType>(res.value())) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.8K bytes - Viewed (0) -
cmd/notification.go
retryCount int } // WithNPeers returns a new NotificationGroup with length of errs slice upto nerrs, // upon Wait() errors are returned collected from all tasks. func WithNPeers(nerrs int) *NotificationGroup { if nerrs <= 0 { nerrs = 1 } wk, _ := workers.New(nerrs) return &NotificationGroup{errs: make([]NotificationPeerErr, nerrs), workers: wk, retryCount: 3} }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 44.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/lazy/lazy.go
func (m *MapValue) ConvertToType(typeVal ref.Type) ref.Val { switch typeVal { case m.typeValue: return m case types.TypeType: return m.typeValue } return types.NewErr("disallowed conversion from %q to %q", m.typeValue.TypeName(), typeVal.TypeName()) } // Equal returns true if the other object is the same pointer-wise. func (m *MapValue) Equal(other ref.Val) ref.Val {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 21:31:27 UTC 2023 - 4.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/ip.go
if !ok { return types.MaybeNoSuchOverloadErr(arg) } addr, err := parseIPAddr(s) if err != nil { // Don't add context, we control the error message already. return types.NewErr("%v", err) } return apiservercel.IP{ Addr: addr, } } func ipToString(arg ref.Val) ref.Val { ip, ok := arg.(apiservercel.IP) if !ok { return types.MaybeNoSuchOverloadErr(arg)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 11:02:34 UTC 2023 - 9.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/quantity.go
} func (d Quantity) ConvertToType(typeVal ref.Type) ref.Val { switch typeVal { case quantityTypeValue: return d case types.TypeType: return quantityTypeValue default: return types.NewErr("type conversion error from '%s' to '%s'", quantityTypeValue, typeVal) } } func (d Quantity) Equal(other ref.Val) ref.Val { otherDur, ok := other.(Quantity) if !ok { return types.MaybeNoSuchOverloadErr(other)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 04 11:23:54 UTC 2024 - 2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/regex.go
} regex, ok := regexVal.Value().(string) if !ok { return types.MaybeNoSuchOverloadErr(regexVal) } re, err := regexp.Compile(regex) if err != nil { return types.NewErr("Illegal regex: %v", err.Error()) } result := re.FindString(str) return types.String(result) } func findAll(args ...ref.Val) ref.Val { argn := len(args) if argn < 2 || argn > 3 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 21:31:27 UTC 2023 - 5.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/modfile/work.go
if d.Path == path { d.Syntax.markRemoved() *d = Use{} } } return nil } func (f *WorkFile) AddReplace(oldPath, oldVers, newPath, newVers string) error { return addReplace(f.Syntax, &f.Replace, oldPath, oldVers, newPath, newVers) } func (f *WorkFile) DropReplace(oldPath, oldVers string) error { for _, r := range f.Replace { if r.Old.Path == oldPath && r.Old.Version == oldVers {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 18:34:56 UTC 2024 - 7.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/converter.go
} if c.mismatchDetection { newUnstr := map[string]interface{}{} newErr := toUnstructuredViaJSON(obj, &newUnstr) if (err != nil) != (newErr != nil) { klog.Fatalf("ToUnstructured unexpected error for %v: error: %v; newErr: %v", obj, err, newErr) } if err == nil && !c.comparison.DeepEqual(u, newUnstr) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 11 16:02:13 UTC 2023 - 24.9K bytes - Viewed (0)