Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 595 for weights (0.18 sec)

  1. src/internal/zstd/huff.go

    	}
    	weights[count] = uint8(highBit + 1)
    	count++
    	weightMark[highBit+1]++
    
    	if weightMark[1] < 2 || weightMark[1]&1 != 0 {
    		return 0, 0, r.makeError(off, "bad Huffman weights")
    	}
    
    	// Change weightMark from a count of weights to the index of
    	// the first symbol for that weight. We shift the indexes to
    	// also store how many we have seen so far,
    	next := uint32(0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 20:34:13 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. pilot/pkg/xds/eds_sh_test.go

    	}
    
    	lbEndpoints := eps[0].LbEndpoints
    	if len(lbEndpoints) != len(expected.weights) {
    		t.Fatalf("unexpected number of endpoints.\nWant:\n%v\nGot:\n%v", expected.getAddrs(), getLbEndpointAddrs(lbEndpoints))
    	}
    
    	for addr, weight := range expected.weights {
    		var match *endpoint.LbEndpoint
    		for _, ep := range lbEndpoints {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 12 18:20:36 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_extra_models/test_tutorial005.py

                                            "type": "object",
                                            "additionalProperties": {"type": "number"},
                                        }
                                    }
                                },
                            }
                        },
                        "summary": "Read Keyword Weights",
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_extra_models/test_tutorial005_py39.py

                                        "schema": {
                                            "title": "Response Read Keyword Weights Keyword Weights  Get",
                                            "type": "object",
                                            "additionalProperties": {"type": "number"},
                                        }
                                    }
                                },
                            }
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. tests/test_tutorial/test_body_nested_models/test_tutorial009_py39.py

        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
    
    
    @needs_py39
    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
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/quantization_options.proto

        // Apply float16 quantization to all the weights. Quantized weights will be
        // dequantized before running inference.
        // Activation: f32, Weight: f16, Bias: f16
        FLOAT16 = 3;
    
        // Apply static range quantization. The quantization range is determined
        // via calibration phase and quantized during conversion.
        // Activation: qi8, Weight: qi8, Bias: qi32
        POST_TRAINING_QUANTIZATION_STATIC_RANGE = 4;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 22 02:20:05 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  9. src/cmd/internal/pgo/pgo.go

    }
    
    // NamedEdgeMap contains all unique call edges in the profile and their
    // edge weight.
    type NamedEdgeMap struct {
    	Weight map[NamedCallEdge]int64
    
    	// ByWeight lists all keys in Weight, sorted by edge weight from
    	// highest to lowest.
    	ByWeight []NamedCallEdge
    }
    
    func emptyProfile() *Profile {
    	// Initialize empty maps/slices for easier use without a requiring a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfr/examples/mnist/mnist_train.py

        # output shape: [-1, 1024]
        fc1 = gen_mnist_ops.new_fully_connected(reshape, self.weights['f3'],
                                                self.biases['b3'], 'RELU')
        # output shape: [-1, 10]
        return gen_mnist_ops.new_fully_connected(fc1, self.weights['f4'],
                                                 self.biases['b4'])
    
    
    def main(strategy):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 20 03:05:18 UTC 2021
    - 6.5K bytes
    - Viewed (0)
Back to top