Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for assertKeys (0.11 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/cache/lruexpirecache_test.go

    // the eviction list.
    func assertKeys(t *testing.T, gotKeys, wantKeys []interface{}) {
    	t.Helper()
    	if diff := cmp.Diff(gotKeys, wantKeys); diff != "" {
    		t.Errorf("Wrong result for keys: diff (-got +want):\n%s", diff)
    	}
    }
    
    func TestSimpleGet(t *testing.T) {
    	c := NewLRUExpireCache(10)
    	c.Add("long-lived", "12345", 10*time.Hour)
    
    	assertKeys(t, c.Keys(), []interface{}{"long-lived"})
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:48 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test.py

        # values are arbitrary.
        self.assertAllClose(new_outputs, expected_outputs, rtol=0.3, atol=0.2)
    
        # Due to other meta data, the compression is not exactly 1/4.
        self.assertLess(
            testing.get_size_ratio(
                self._output_saved_model_path, self._input_saved_model_path
            ),
            0.65,
        )
    
        if merge_fusion_with_dequantize:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ivy/ComponentSelectionRulesProcessingIntegTest.groovy

                            all ${rules['select 1.1']}
                        }
                    }
                }
                configurations.add(configurations.conf.copy())
    
                task('assertDeps') {
                    def conf = configurations.conf
                    def confCopy = configurations.confCopy
                    def notCopy = configurations.notCopy
                    doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

            self._output_saved_model_path,
            quantization_options,
        )
        self.assertIsNotNone(converted_model)
        # Due to other meta data, the compression is not exactly 1/4.
        self.assertLess(
            testing.get_size_ratio(
                self._output_saved_model_path, self._input_saved_model_path
            ),
            0.5,
        )
    
      def test_qat_vocab_table_lookup_model(self):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
Back to top