Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 104 for get_attr (0.16 sec)

  1. fastapi/exception_handlers.py

    from starlette.status import HTTP_422_UNPROCESSABLE_ENTITY, WS_1008_POLICY_VIOLATION
    
    
    async def http_exception_handler(request: Request, exc: HTTPException) -> Response:
        headers = getattr(exc, "headers", None)
        if not is_body_allowed_for_status_code(exc.status_code):
            return Response(status_code=exc.status_code, headers=headers)
        return JSONResponse(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Jun 11 19:08:14 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. pkg/registry/resource/resourceclaimtemplate/strategy.go

    	return nil
    }
    
    func (resourceClaimTemplateStrategy) AllowUnconditionalUpdate() bool {
    	return true
    }
    
    // GetAttrs returns labels and fields of a given object for filtering purposes.
    func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) {
    	template, ok := obj.(*resource.ResourceClaimTemplate)
    	if !ok {
    		return nil, nil, errors.New("not a resourceclaimtemplate")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 10 19:08:24 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  3. pkg/registry/core/persistentvolume/strategy.go

    func (persistentvolumeStatusStrategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string {
    	return nil
    }
    
    // GetAttrs returns labels and fields of a given object for filtering purposes.
    func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) {
    	persistentvolumeObj, ok := obj.(*api.PersistentVolume)
    	if !ok {
    		return nil, nil, fmt.Errorf("not a persistentvolume")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 03:58:36 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/rewrite_tpu_embedding_ops.cc

      auto operands = llvm::to_vector<4>(op->getOperands());
      operands.push_back(operand);
      auto new_op = builder->create<OpT>(op->getLoc(), op->getResultTypes(),
                                         operands, attr.getAttrs());
      op->replaceAllUsesWith(new_op.getOperation()->getResults());
      op->erase();
      return new_op;
    }
    
    // Returns success if the function has at most one op of the template type and
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 22:55:42 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. pkg/registry/certificates/clustertrustbundle/storage/storage.go

    	}
    	options := &generic.StoreOptions{
    		RESTOptions: optsGetter,
    		AttrFunc:    getAttrs,
    	}
    	if err := store.CompleteWithOptions(options); err != nil {
    		return nil, err
    	}
    	return &REST{store}, nil
    }
    
    func getAttrs(obj runtime.Object) (labels.Set, fields.Set, error) {
    	bundle, ok := obj.(*api.ClusterTrustBundle)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 16 03:10:18 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  6. pkg/registry/core/persistentvolumeclaim/strategy.go

    func (persistentvolumeclaimStatusStrategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string {
    	return nil
    }
    
    // GetAttrs returns labels and fields of a given object for filtering purposes.
    func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) {
    	persistentvolumeclaimObj, ok := obj.(*api.PersistentVolumeClaim)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 09 20:58:25 UTC 2022
    - 7.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/strip_saved_module_metadata.cc

          module->getAttrs(),
          [](NamedAttribute namedAttr) { return ShouldStripAttr(namedAttr); }));
      for (auto namedAttr : stripAttrs) {
        module->removeAttr(namedAttr.getName());
      }
    }
    
    void StripFunction(func::FuncOp func) {
      auto stripAttrs = llvm::to_vector<4>(llvm::make_filter_range(
          func->getAttrs(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/strip_tf_attributes.cc

      return value == "tf" || value.starts_with("tf_");
    }
    
    void StripFunction(func::FuncOp func) {
      auto stripAttrs = llvm::to_vector<4>(llvm::make_filter_range(
          func->getAttrs(),
          [](NamedAttribute namedAttr) { return ShouldStripAttr(namedAttr); }));
      for (auto namedAttr : stripAttrs) {
        func->removeAttr(namedAttr.getName());
      }
    
      for (int i = 0; i < func.getNumArguments(); ++i) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  9. pkg/registry/core/namespace/strategy.go

    	newNamespace := obj.(*api.Namespace)
    	oldNamespace := old.(*api.Namespace)
    	newNamespace.Status = oldNamespace.Status
    }
    
    // GetAttrs returns labels and fields of a given object for filtering purposes.
    func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) {
    	namespaceObj, ok := obj.(*api.Namespace)
    	if !ok {
    		return nil, nil, fmt.Errorf("not a namespace")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 07 08:51:17 UTC 2021
    - 8.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfr/utils/utils.cc

      for (auto& attr : src->getAttrs()) {
        StringRef attr_name = attr.getName().strref();
        // Skip the registered or optional attribute.
        if (registered.contains(attr_name) ||
            GetOptionalAttributes().contains(attr_name))
          continue;
    
        // Unregistered attribute.
        if (GetAllowedAttributes().contains(attr_name)) {
          dst->setAttr(attr.getName(), attr.getValue());
        } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 6.2K bytes
    - Viewed (0)
Back to top