Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 191 for y_normalized (0.56 sec)

  1. tensorflow/cc/framework/cc_ops_test.cc

      // y2_sum = sum(y2)
      auto y2_sum = Sum(root, y2, 0);
      // y_norm = sqrt(y2_sum)
      auto y_norm = Sqrt(root, y2_sum);
      // y_normalized = y ./ y_norm
      auto y_normalized = Div(root.WithOpName("y_normalized"), y, y_norm);
      Tensor out;
      test::GetTensor(root, y_normalized, &out);
      test::ExpectTensorNear<float>(
          out, test::AsTensor<float>({0.98058069, -0.19611613}, {2, 1}), 1e-5);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 15 15:13:38 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  2. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/LineEndingNormalizingInputStreamHasherTest.groovy

        def "can normalize line endings in files (eol = '#description')"() {
            def unnormalized = file('unnormalized.txt') << content.textWithLineEndings(eol)
            def normalized = file('normalized.txt') << content.textWithLineEndings('\n')
    
            expect:
            hasher.hashContent(unnormalized).get() == hasher.hashContent(normalized).get()
    
            where:
            eol     | description
            '\r'    | 'CR'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. src/math/big/int_test.go

    		}
    		if !isNormalized(r2) {
    			t.Errorf("#%d Rem: %v is not normalized", i, *r2)
    		}
    		if q2.Cmp(q) != 0 || r2.Cmp(r) != 0 {
    			t.Errorf("#%d QuoRem: got (%s, %s), want (%s, %s)", i, q2, r2, q, r)
    		}
    
    		d1 := new(Int).Div(x, y)
    		m1 := new(Int).Mod(x, y)
    		if !isNormalized(d1) {
    			t.Errorf("#%d Div: %v is not normalized", i, *d1)
    		}
    		if !isNormalized(m1) {
    			t.Errorf("#%d Mod: %v is not normalized", i, *m1)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  4. src/math/big/intconv_test.go

    			if n2 != nil {
    				t.Errorf("#%d (input '%s') n2 != nil", i, test.in)
    			}
    			continue
    		}
    
    		if ok1 && !isNormalized(n1) {
    			t.Errorf("#%d (input '%s'): %v is not normalized", i, test.in, *n1)
    		}
    		if ok2 && !isNormalized(n2) {
    			t.Errorf("#%d (input '%s'): %v is not normalized", i, test.in, *n2)
    		}
    
    		if n1.Cmp(expected) != 0 {
    			t.Errorf("#%d (input '%s') got: %s want: %d", i, test.in, n1, test.val)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 22:58:58 UTC 2019
    - 10K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/process/internal/util/MergeOptionsUtil.java

            }
    
            String normalized = heapSize.trim().toLowerCase();
            try {
                if (normalized.endsWith("m")) {
                    return Integer.parseInt(normalized.substring(0, normalized.length() - 1));
                }
                if (normalized.endsWith("g")) {
                    return Integer.parseInt(normalized.substring(0, normalized.length() - 1)) * 1024;
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  6. platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/health/memory/MemoryAmount.java

                return -1;
            }
            String normalized = notation.toLowerCase(Locale.US).trim();
            if (normalized.isEmpty()) {
                return -1;
            }
            try {
                if (normalized.endsWith("k")) {
                    return parseWithFactor(normalized, KILO_FACTOR);
                }
                if (normalized.endsWith("m")) {
                    return parseWithFactor(normalized, MEGA_FACTOR);
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  7. subprojects/core-api/src/main/java/org/gradle/api/artifacts/VersionCatalog.java

         * Note: Alias will be automatically normalized: '-', '_' and '.' will be replaced with '.'
         * </p>
         * @param alias the alias of the library
         * @since 7.4
         */
        Optional<Provider<MinimalExternalModuleDependency>> findLibrary(String alias);
    
        /**
         * Returns the provider for the corresponding bundle alias.
         * <p>
         * Note: Bundle will be automatically normalized: '-', '_' and '.' will be replaced with '.'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 25 20:59:29 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  8. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelNormalizer.java

            Map<String, Dependency> normalized = new LinkedHashMap<>(dependencies.size() * 2);
    
            for (Dependency dependency : dependencies) {
                normalized.put(dependency.getManagementKey(), dependency);
            }
    
            if (dependencies.size() != normalized.size()) {
                builder.dependencies(normalized.values());
            }
    
            return builder.build();
        }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/history/changes/FingerprintCompareStrategyTest.groovy

        private static final ABSOLUTE = AbsolutePathFingerprintCompareStrategy.INSTANCE
        private static final NORMALIZED = NormalizedPathFingerprintCompareStrategy.INSTANCE
        private static final IGNORED_PATH = IgnoredPathCompareStrategy.INSTANCE
        private static final ALL_STRATEGIES = ImmutableList.of(ABSOLUTE, NORMALIZED, IGNORED_PATH)
    
        def "empty snapshots (#strategy.class.simpleName)"() {
            expect:
            changes(strategy,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 13.6K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/ExecutionFailure.java

         *
         * <p>Error messages are normalized to use new-line char as line separator.
         *
         * @return this
         */
        ExecutionFailure assertHasFailure(String description, Consumer<? super Failure> action);
    
        /**
         * Asserts that there is a failure present with the given cause (ie the bit after the description).
         *
         * <p>Error messages are normalized to use new-line char as line separator.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 09:21:25 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top