Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 191 for weighted (0.17 sec)

  1. pilot/pkg/config/kube/ingress/testdata/simple.yaml.golden

              number: 4209
          weight: 100
      - match:
        - uri:
            exact: /sub/path
        route:
        - destination:
            host: service1.ns.svc.mydomain
            port:
              number: 4201
          weight: 100
      - match:
        - uri:
            exact: /sub/path
        route:
        - destination:
            host: service1.ns.svc.mydomain
            port:
              number: 4206
          weight: 100
      - match:
        - uri:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 14 16:13:05 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  2. docs_src/body_nested_models/tutorial009_py39.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.post("/index-weights/")
    async def create_index_weights(weights: dict[int, float]):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 154 bytes
    - Viewed (0)
  3. docs_src/body_nested_models/tutorial009.py

    from typing import Dict
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.post("/index-weights/")
    async def create_index_weights(weights: Dict[int, float]):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 179 bytes
    - Viewed (0)
  4. tests/test_tutorial/test_body_nested_models/test_tutorial009.py

    def test_post_body(client: TestClient):
        data = {"2": 2.2, "3": 3.3}
        response = client.post("/index-weights/", json=data)
        assert response.status_code == 200, response.text
        assert response.json() == data
    
    
    def test_post_invalid_body(client: TestClient):
        data = {"foo": 2.2, "3": 3.3}
        response = client.post("/index-weights/", json=data)
        assert response.status_code == 422, response.text
        assert response.json() == IsDict(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.td

        (SupportedAffineOpMatcher $conv_out, $input, $weight),
        (TF_ConstOp:$mul_rhs IsFloatElementsAttr:$mul_rhs_value)),
      (CloneOpWithReplacedOperands
            (GetDefiningOp $conv_out),
            $input,
            (MultiplyFakeQuantValue $weight,
              (MakeOneDimValueBroadcastable $mul_rhs, $weight))),
      [(HasOneUse $conv_out),
       (HasRankOf<1> $mul_rhs_value),
       (HasStaticShapeConstraint $weight),
       (CanBeSymmetricallyQuantized $weight),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 03:24:59 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. pilot/test/xdstest/endpoints.go

    					found = true
    
    					// Now compare the weight.
    					if lbEp.GetLoadBalancingWeight().Value != wantLbEp.Weight {
    						return fmt.Errorf("unexpected weight for endpoint %s: got %v, want %v",
    							addr, lbEp.GetLoadBalancingWeight().Value, wantLbEp.Weight)
    					}
    					break
    				}
    			}
    			if !found {
    				return fmt.Errorf("unexpected address for endpoint %d: %v", i, addr)
    			}
    		}
    	}
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/noderesources/test_util.go

    	defaultResources     = []config.ResourceSpec{
    		{Name: string(v1.ResourceCPU), Weight: 1},
    		{Name: string(v1.ResourceMemory), Weight: 1},
    	}
    	extendedRes         = "abc.com/xyz"
    	extendedResourceSet = []config.ResourceSpec{
    		{Name: string(v1.ResourceCPU), Weight: 1},
    		{Name: string(v1.ResourceMemory), Weight: 1},
    		{Name: extendedRes, Weight: 1},
    	}
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 01:07:28 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  8. pilot/pkg/xds/testdata/benchmarks/knative-gateway.yaml

            port:
              number: 80
          headers:
            request:
              set:
                Knative-Serving-Namespace: default
                Knative-Serving-Revision: hello-{{$i}}
          weight: 100
      - match:
        - authority:
            prefix: hello.default
          gateways:
          - knative-serving/knative-local-gateway
        route:
        - destination:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 19 16:50:51 UTC 2021
    - 5.1K bytes
    - Viewed (0)
  9. pkg/test/loadbalancersim/loadbalancer/edf.go

    	currentDeadline float64
    }
    
    // Add a new entry for load balance
    func (e *EDF) Add(weight float64, value any) {
    	e.currentIndex++
    	heap.Push(e.pq, &Entry{
    		value:    value,
    		weight:   weight,
    		deadline: e.currentDeadline + 1/weight,
    		index:    e.currentIndex,
    	})
    }
    
    // PickAndAdd picks an available entry and re-adds it with the given weight calculation
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 20 19:13:32 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  10. pkg/scheduler/apis/config/v1/defaults.go

    	if len(obj.Resources) == 0 {
    		obj.Resources = defaultResourceSpec
    		return
    	}
    	// If the weight is not set or it is explicitly set to 0, then apply the default weight(1) instead.
    	for i := range obj.Resources {
    		if obj.Resources[i].Weight == 0 {
    			obj.Resources[i].Weight = 1
    		}
    	}
    }
    
    func SetDefaults_PodTopologySpreadArgs(obj *configv1.PodTopologySpreadArgs) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 7.2K bytes
    - Viewed (0)
Back to top