Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 82 for add_func (0.26 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc

          *list->add_tensor() = tensor;
        } else if (auto attr = mlir::dyn_cast<mlir::FlatSymbolRefAttr>(a)) {
          AttrValue attr_val;
          TF_RETURN_IF_ERROR(ConvertAttribute(attr, &attr_val));
          *list->add_func() = attr_val.func();
        } else if (auto attr = mlir::dyn_cast<mlir::TypeAttr>(a)) {
          AttrValue attr_val;
          // For type attributes, we only propagate the element type.
          mlir::Type elt_type = attr.getValue();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  2. plugin/pkg/auth/authorizer/node/graph_populator.go

    		AddFunc:    g.addPod,
    		UpdateFunc: g.updatePod,
    		DeleteFunc: g.deletePod,
    	})
    
    	pvsHandler, _ := pvs.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{
    		AddFunc:    g.addPV,
    		UpdateFunc: g.updatePV,
    		DeleteFunc: g.deletePV,
    	})
    
    	attachHandler, _ := attachments.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{
    		AddFunc:    g.addVolumeAttachment,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. pkg/kube/controllers/common.go

    type EventHandler[T Object] struct {
    	AddFunc         func(obj T)
    	AddExtendedFunc func(obj T, initialSync bool)
    	UpdateFunc      func(oldObj, newObj T)
    	DeleteFunc      func(obj T)
    }
    
    func (e EventHandler[T]) OnAdd(obj interface{}, initialSync bool) {
    	if e.AddExtendedFunc != nil {
    		e.AddExtendedFunc(Extract[T](obj), initialSync)
    	} else if e.AddFunc != nil {
    		e.AddFunc(Extract[T](obj))
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 11 08:27:29 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. src/net/file_unix.go

    	default:
    		poll.CloseFunc(s)
    		return nil, syscall.EPROTONOSUPPORT
    	}
    	fd, err := newFD(s, family, sotype, "")
    	if err != nil {
    		poll.CloseFunc(s)
    		return nil, err
    	}
    	laddr := fd.addrFunc()(lsa)
    	raddr := fd.addrFunc()(rsa)
    	fd.net = laddr.Network()
    	if err := fd.init(); err != nil {
    		fd.Close()
    		return nil, err
    	}
    	fd.setAddr(laddr, raddr)
    	return fd, nil
    }
    
    func fileConn(f *os.File) (Conn, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantized_function_library.mlir

          {"quantized_ops": ["${main_op}", "Relu6"], "act_func": "internal_requantize_and_relu6_fn", "output_type": "i8"},
          {"quantized_ops": ["${main_op}"], "act_func": "internal_dequantize_no_activation_fn", "output_type": "f32"},
          {"quantized_ops": ["${main_op}", "Relu"], "act_func": "internal_dequantize_and_relu_fn", "output_type": "f32"},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jan 08 01:16:10 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  6. pkg/scheduler/eventhandlers.go

    					return false
    				default:
    					utilruntime.HandleError(fmt.Errorf("unable to handle object in %T: %T", sched, obj))
    					return false
    				}
    			},
    			Handler: cache.ResourceEventHandlerFuncs{
    				AddFunc:    sched.addPodToCache,
    				UpdateFunc: sched.updatePodInCache,
    				DeleteFunc: sched.deletePodFromCache,
    			},
    		},
    	); err != nil {
    		return err
    	}
    	handlers = append(handlers, handlerRegistration)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:21:04 UTC 2024
    - 24K bytes
    - Viewed (0)
  7. src/internal/coverage/encodemeta/encode.go

    	tmp = tmp[:0]
    	tmp = append(tmp, 0, 0, 0, 0)
    	binary.LittleEndian.PutUint32(tmp, x)
    	h.Write(tmp)
    }
    
    type funcDesc struct {
    	encoded []byte
    }
    
    // AddFunc registers a new function with the meta data builder.
    func (b *CoverageMetaDataBuilder) AddFunc(f coverage.FuncDesc) uint {
    	hashFuncDesc(b.h, &f, b.tmp)
    	fd := funcDesc{}
    	b.tmp = b.tmp[:0]
    	b.tmp = uleb128.AppendUleb128(b.tmp, uint(len(f.Units)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 17:16:10 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  8. pkg/proxy/config/config.go

    		listerSynced: endpointSliceInformer.Informer().HasSynced,
    		logger:       klog.FromContext(ctx),
    	}
    
    	_, _ = endpointSliceInformer.Informer().AddEventHandlerWithResyncPeriod(
    		cache.ResourceEventHandlerFuncs{
    			AddFunc:    result.handleAddEndpointSlice,
    			UpdateFunc: result.handleUpdateEndpointSlice,
    			DeleteFunc: result.handleDeleteEndpointSlice,
    		},
    		resyncPeriod,
    	)
    
    	return result
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  9. src/net/fd_windows.go

    	syscall.GetAcceptExSockaddrs((*byte)(unsafe.Pointer(&rawsa[0])),
    		0, rsan, rsan, &lrsa, &llen, &rrsa, &rlen)
    	lsa, _ := lrsa.Sockaddr()
    	rsa, _ := rrsa.Sockaddr()
    
    	netfd.setAddr(netfd.addrFunc()(lsa), netfd.addrFunc()(rsa))
    	return netfd, nil
    }
    
    // Unimplemented functions.
    
    func (fd *netFD) dup() (*os.File, error) {
    	// TODO: Implement this, perhaps using internal/poll.DupCloseOnExec.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 16:46:10 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  10. pkg/controller/bootstrap/bootstrapsigner.go

    				default:
    					utilruntime.HandleError(fmt.Errorf("object passed to %T that is not expected: %T", e, obj))
    					return false
    				}
    			},
    			Handler: cache.ResourceEventHandlerFuncs{
    				AddFunc:    func(_ interface{}) { e.pokeConfigMapSync() },
    				UpdateFunc: func(_, _ interface{}) { e.pokeConfigMapSync() },
    			},
    		},
    		options.ConfigMapResync,
    	)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top