Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for expected_name (0.33 sec)

  1. tensorflow/c/experimental/saved_model/core/signature_flattening_test.cc

    bool TensorSpecsAreEqual(const TensorSpecProto& spec,
                             const std::string& expected_name,
                             const PartialTensorShape& expected_shape,
                             DataType expected_dtype) {
      return spec.name() == expected_name &&
             PartialTensorShape(spec.shape()).IsIdenticalTo(expected_shape) &&
             spec.dtype() == expected_dtype;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 06 21:36:59 UTC 2020
    - 5.9K bytes
    - Viewed (0)
  2. tensorflow/cc/saved_model/bundle_v2_test.cc

            }));
    
        // Should be one of each var name restored.
        for (const auto& expected_name : expected_names) {
          EXPECT_EQ(1, std::count_if(restored_vars.begin(), restored_vars.end(),
                                     [&](RestoredVarType t) {
                                       return std::get<1>(t) == expected_name;
                                     }));
        }
    
        for (const auto& restored_var : restored_vars) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 12 17:51:15 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. internal/event/name_test.go

    		}
    
    		if !testCase.expectErr {
    			if !reflect.DeepEqual(name, testCase.expectedName) {
    				t.Fatalf("test %v: data: expected: %v, got: %v", i+1, testCase.expectedName, name)
    			}
    		}
    	}
    }
    
    func TestParseName(t *testing.T) {
    	var blankName Name
    
    	testCases := []struct {
    		s            string
    		expectedName Name
    		expectErr    bool
    	}{
    		{"s3:ObjectAccessed:*", ObjectAccessedAll, false},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. tests/connection_test.go

    	"gorm.io/driver/mysql"
    	"gorm.io/gorm"
    )
    
    func TestWithSingleConnection(t *testing.T) {
    	expectedName := "test"
    	var actualName string
    
    	setSQL, getSQL := getSetSQL(DB.Dialector.Name())
    	if len(setSQL) == 0 || len(getSQL) == 0 {
    		return
    	}
    
    	err := DB.Connection(func(tx *gorm.DB) error {
    		if err := tx.Exec(setSQL, expectedName).Error; err != nil {
    			return err
    		}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Jan 28 14:16:42 UTC 2022
    - 963 bytes
    - Viewed (0)
  5. pkg/volume/flexvolume/plugin_test.go

    			specJSON(plugin, spec, nil)),
    	)
    
    	name, err := plugin.GetVolumeName(spec)
    	if err != nil {
    		t.Errorf("GetVolumeName() failed: %v", err)
    	}
    	expectedName := spec.Name()
    	if name != expectedName {
    		t.Errorf("GetVolumeName() returned %v instead of %v", name, expectedName)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Dec 21 06:54:44 UTC 2019
    - 1.5K bytes
    - Viewed (0)
  6. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/analysis/PropertyTest.kt

        fun `if multiple property extractors have properties with the same name, first wins`() {
            val expectedName = "test"
            val schema = schemaFromTypes(
                MyReceiver::class,
                listOf(MyReceiver::class),
                propertyExtractor = testPropertyContributor(expectedName, typeOf<Int>()) + testPropertyContributor(expectedName, typeOf<String>())
            )
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:01 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/status/naming_controller_test.go

    	tests := []struct {
    		name string
    
    		in                            *apiextensionsv1.CustomResourceDefinition
    		existing                      []*apiextensionsv1.CustomResourceDefinition
    		expectedNames                 apiextensionsv1.CustomResourceDefinitionNames
    		expectedNameConflictCondition apiextensionsv1.CustomResourceDefinitionCondition
    		expectedEstablishedCondition  apiextensionsv1.CustomResourceDefinitionCondition
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 03 16:49:27 UTC 2019
    - 15.7K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/endpoints/request/requestinfo_test.go

    		}
    		if successCase.expectedName != apiRequestInfo.Name {
    			t.Errorf("Unexpected name for url: %s, expected: %s, actual: %s", successCase.url, successCase.expectedName, apiRequestInfo.Name)
    		}
    		if !reflect.DeepEqual(successCase.expectedParts, apiRequestInfo.Parts) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 15 12:19:21 UTC 2018
    - 11.3K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/CompilationOutputsFixture.groovy

        void recompiledFiles(Collection<File> files) {
            def expectedNames = files.collect({ removeExtension(it.name) }) as Set
            assert changedFileNames == expectedNames
        }
    
        //asserts has the exact set of output files
        void hasFiles(File... files) {
            def expectedNames = files.collect({ removeExtension(it.name) }) as Set
            assert getFiles { true } == expectedNames
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

           * used in other tests.
           */
    
          String expectedName = Ascii.toLowerCase(inputName);
          expectedName = expectedName.replaceAll("[\u3002\uFF0E\uFF61]", ".");
    
          if (expectedName.endsWith(".")) {
            expectedName = expectedName.substring(0, expectedName.length() - 1);
          }
    
          assertEquals(expectedName, domain.toString());
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Mar 05 13:16:00 UTC 2024
    - 17.3K bytes
    - Viewed (0)
Back to top