Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 236 for casts (0.05 sec)

  1. src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go

    				if cast != nil {
    					st.setTemplate(cast, tmpl)
    					st.clearTemplateArgs(args)
    					cast = nil
    				}
    				a = nil
    				next = tmpl
    			case 'T':
    				next = st.templateParam()
    			case 'E':
    				if a == nil {
    					st.fail("expected prefix")
    				}
    				if cast != nil {
    					var toTmpl *Template
    					if castTempl, ok := cast.To.(*Template); ok {
    						toTmpl = castTempl
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 94.1K bytes
    - Viewed (0)
  2. cmd/object-api-multipart_test.go

    	}
    
    	// Validate all the test cases.
    	for i, testCase := range testCases {
    		actualInfo, actualErr := obj.PutObjectPart(context.Background(), testCase.bucketName, testCase.objName, testCase.uploadID, testCase.PartID, mustGetPutObjReader(t, bytes.NewBufferString(testCase.inputReaderData), testCase.inputDataSize, testCase.inputMd5, testCase.inputSHA256), opts)
    		// All are test cases above are expected to fail.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 77.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

          ShapedType new_output_type = ConvertIntToQint(
              mlir::cast<ShapedType>(output_type), rewriter.getContext());
          if (!new_output_type) {
            dq_op->emitError(
                "Failed to convert the type to the corresponding qtype.");
            return failure();
          }
          output_type = mlir::cast<TensorType>(new_output_type);
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  4. cmd/xl-storage_test.go

    			}
    		})
    	}
    }
    
    // Tests validate volume name.
    func TestIsValidVolname(t *testing.T) {
    	testCases := []struct {
    		volName    string
    		shouldPass bool
    	}{
    		// Cases which should pass the test.
    		// passing in valid bucket names.
    		{"lol", true},
    		{"1-this-is-valid", true},
    		{"1-this-too-is-valid-1", true},
    		{"this.works.too.1", true},
    		{"1234567", true},
    		{"123", true},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 11 17:45:28 UTC 2024
    - 66.7K bytes
    - Viewed (0)
  5. pilot/pkg/model/push_context_test.go

    	push0 := &PushContext{}
    	// trivially different push contexts just for testing
    	push1 := &PushContext{ProxyStatus: make(map[string]map[string]ProxyPushStatus)}
    
    	var t0 time.Time
    	t1 := t0.Add(time.Minute)
    
    	cases := []struct {
    		name   string
    		left   *PushRequest
    		right  *PushRequest
    		merged PushRequest
    	}{
    		{
    			"left nil",
    			nil,
    			&PushRequest{Full: true},
    			PushRequest{Full: true},
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 95.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test.py

    from tensorflow.python.saved_model import tag_constants
    from tensorflow.python.types import core
    
    _CalibrationMethod = qc.CalibrationOptions.CalibrationMethod
    
    
    # Test cases for Static Range Quantization.
    # Tries to run all tests cases in both the graph mode (default in TF1) and the
    # eager mode (default in TF2) to ensure support for when TF2 is disabled.
    class StaticRangeQuantizationTest(quantize_model_test_base.QuantizedModelTest):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/httproute_test.go

    					{
    						Destination: &networking.Destination{
    							Host: "test-service.default.svc.cluster.local",
    						},
    					},
    				},
    			},
    		},
    	}
    
    	// TODO(ramaraochavali): Add more test cases.
    	cases := []struct {
    		name                  string
    		services              []*model.Service
    		config                []config.Config
    		expectStatefulSession *statefulsession.StatefulSessionPerRoute
    	}{
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest.h

    #endif  // GTEST_HAS_PARAM_TEST
    
      // Gets the number of successful test cases.
      int successful_test_case_count() const;
    
      // Gets the number of failed test cases.
      int failed_test_case_count() const;
    
      // Gets the number of all test cases.
      int total_test_case_count() const;
    
      // Gets the number of all test cases that contain at least one test
      // that should run.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 86.4K bytes
    - Viewed (0)
  9. pkg/apis/storage/validation/validation_test.go

    			Parameters: longParameters,
    		},
    	}
    
    	// Error cases are not expected to pass validation.
    	for testName, v := range errorCases {
    		if errs := ValidateVolumeAttributesClass(&v); len(errs) == 0 {
    			t.Errorf("Expected failure for test: %s", testName)
    		}
    	}
    }
    
    func TestValidateVolumeAttributesClassUpdate(t *testing.T) {
    	cases := map[string]struct {
    		oldClass      *storage.VolumeAttributesClass
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 69.7K bytes
    - Viewed (0)
  10. pilot/pkg/model/telemetry_logging_test.go

    				celFormatter,
    			},
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			got := accessLogJSONFormatters(tc.json)
    			assert.Equal(t, tc.expected, got)
    		})
    	}
    }
    
    func TestAccessLogTextFormatters(t *testing.T) {
    	cases := []struct {
    		name     string
    		text     string
    		expected []*core.TypedExtensionConfig
    	}{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 54K bytes
    - Viewed (0)
Back to top