Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 863 for calculateId (0.22 sec)

  1. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/configuration/AllProperties.java

     * properties files.
     */
    public interface AllProperties {
        /**
         * Returns the system properties defined as command-line options.
         */
        Map<String, String> getRequestedSystemProperties();
    
        /**
         * Returns all properties that should be considered to calculate build option values.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 13:41:21 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/noderesources/least_allocated.go

    			nodeScore += resourceScore * weight
    			weightSum += weight
    		}
    		if weightSum == 0 {
    			return 0
    		}
    		return nodeScore / weightSum
    	}
    }
    
    // The unused capacity is calculated on a scale of 0-MaxNodeScore
    // 0 being the lowest priority and `MaxNodeScore` being the highest.
    // The more unused resources the higher the score is.
    func leastRequestedScore(requested, capacity int64) int64 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 12 01:50:09 UTC 2023
    - 2K bytes
    - Viewed (0)
  3. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/caching/CachingState.java

            return delegate.fold(enabled -> Optional.of(enabled.getCacheKeyCalculatedState()), Disabled::getCacheKeyCalculatedState);
        }
    
        /**
         * State when we calculated the cache key.
         *
         * We always calculate the cache key when we have a {@link BeforeExecutionState}.
         * In some places we need to know that both are present or absent, we encode this here.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 13:41:13 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/noderesources/most_allocated.go

    			nodeScore += resourceScore * weight
    			weightSum += weight
    		}
    		if weightSum == 0 {
    			return 0
    		}
    		return nodeScore / weightSum
    	}
    }
    
    // The used capacity is calculated on a scale of 0-MaxNodeScore (MaxNodeScore is
    // constant with value set to 100).
    // 0 being the lowest priority and 100 being the highest.
    // The more resources are used the higher the score is. This function
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 21 15:23:47 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/FileContentCacheFactory.java

     * limitations under the License.
     */
    
    package org.gradle.cache.internal;
    
    import org.gradle.internal.serialize.Serializer;
    
    import java.io.File;
    
    /**
     * A factory for caches that contain some calculated value for a particular file. Maintains a cross-build in-memory and persistent cache of computed values. The value for a given file is updated when the content of the file changes.
     */
    public interface FileContentCacheFactory {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.cc

      return folded_results.front();
    }
    
    // Calculates zero-point offset by reducing the weight and multiply it with zp.
    // Originally, we have:
    //   output = (int8_input - input_zp) * (int8_weight - weight_zp)
    // So, offset = input_zp * int8_weight + weight_zp * int8_input
    // - input_zp * weight_zp.
    // This function calculates the `offset` value mentioned above. Note that the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/internal/model/CalculatedValueContainerFactory.java

            this.projectLeaseRegistry = projectLeaseRegistry;
            this.globalContext = buildScopeServices::get;
        }
    
        /**
         * Create a calculated value that may have dependencies or that may need to access mutable model state.
         */
        public <T, S extends ValueCalculator<? extends T>> CalculatedValueContainer<T, S> create(DisplayName displayName, S supplier) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 20:21:17 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/podtopologyspread/scoring.go

    			// when scoring later.
    			s.IgnoredNodes.Insert(node.Node().Name)
    			continue
    		}
    		for i, constraint := range s.Constraints {
    			// per-node counts are calculated during Score.
    			if constraint.TopologyKey == v1.LabelHostname {
    				continue
    			}
    			pair := topologyPair{key: constraint.TopologyKey, value: node.Node().Labels[constraint.TopologyKey]}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/cache/internal/DefaultFileContentCacheFactory.java

                    location -> fileSystemAccess.readRegularFileContentHash(location.getAbsolutePath())
                        .map(contentHash -> contentCache.get(contentHash, key -> calculator.calculate(location, true))
                    ).orElseGet(
                        () -> calculator.calculate(location, false)
                    ));
            }
    
            private void assertStoredIn(IndexedCache<HashCode, V> store) {
                if (this.contentCache != store) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 15:51:31 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/model/ModelContainer.java

        /**
         * Returns whether or not the current thread has access to the mutable model.
         */
        boolean hasMutableState();
    
        /**
         * Creates a new container for a value that is calculated from the mutable state of this container, and then reused by multiple threads.
         */
        <S> CalculatedModelValue<S> newCalculatedValue(@Nullable S initialValue);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:26:24 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top