Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 537 for bounded (0.45 sec)

  1. pkg/kubelet/util/ioutils/ioutils_test.go

    				written int64
    				n       int
    			)
    			for written < test.inputSize && err == nil {
    				n, err = w.Write(input[written : written+test.writeSize])
    				written += int64(n)
    			}
    
    			expectWritten := bounded(0, test.inputSize, test.limit)
    			assert.EqualValues(t, expectWritten, written)
    			if expectWritten <= 0 {
    				assert.Empty(t, output)
    			} else {
    				assert.Equal(t, input[:expectWritten], output.Bytes())
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 11 13:52:28 UTC 2019
    - 2K bytes
    - Viewed (0)
  2. internal/bpool/bpool.go

    package bpool
    
    import "github.com/klauspost/reedsolomon"
    
    // BytePoolCap implements a leaky pool of []byte in the form of a bounded channel.
    type BytePoolCap struct {
    	c    chan []byte
    	w    int
    	wcap int
    }
    
    // NewBytePoolCap creates a new BytePool bounded to the given maxSize, with new
    // byte arrays sized based on width.
    func NewBytePoolCap(maxSize uint64, width int, capwidth int) (bp *BytePoolCap) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 19 16:44:59 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. test/fixedbugs/issue4448.go

    // Copyright 2012 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 4448: 64-bit indices that are statically known
    // to be bounded make 5g and 8g generate a dangling branch.
    
    package main
    
    const b26 uint64 = 0x022fdd63cc95386d
    
    var bitPos [64]int
    
    func init() {
    	for p := uint(0); p < 64; p++ {
    		bitPos[b26<<p>>58] = int(p)
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 718 bytes
    - Viewed (0)
  4. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/dispatch/BoundedDispatch.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.internal.dispatch;
    
    /**
     * A sink for a bounded stream of messages.
     *
     * <p>Implementations are not required to be thread-safe.
     */
    public interface BoundedDispatch<T> extends Dispatch<T>, StreamCompletion {
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_with_tf2xla.cc

    #include "tsl/platform/status.h"
    #include "tsl/platform/statusor.h"
    
    namespace mlir {
    namespace mhlo {
    
    namespace {
    
    // Returns true if the given type is a ranked tensor type with static or bounded
    // dimensions.
    bool IsBounded(Type ty) {
      auto ranked_ty = mlir::dyn_cast<RankedTensorType>(ty);
      if (!ranked_ty) return false;
    
      if (ranked_ty.hasStaticShape()) return true;
    
      auto encoding =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  6. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableEnumMap.java

    import static com.google.common.base.Preconditions.checkNotNull;
    
    import java.util.Map;
    import java.util.Map.Entry;
    
    /**
     * GWT emulation of {@link ImmutableEnumMap}. The type parameter is not bounded by {@code Enum<E>}
     * to avoid code-size bloat.
     *
     * @author Hayward Chan
     */
    @ElementTypesAreNonnullByDefault
    final class ImmutableEnumMap<K, V> extends ForwardingImmutableMap<K, V> {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableEnumSet.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import java.util.Set;
    
    /**
     * GWT emulation of {@link ImmutableEnumSet}. The type parameter is not bounded by {@code Enum<E>}
     * to avoid code-size bloat.
     *
     * @author Hayward Chan
     */
    @ElementTypesAreNonnullByDefault
    final class ImmutableEnumSet<E> extends ForwardingImmutableSet<E> {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/internal/build/NestedBuildState.java

     * limitations under the License.
     */
    
    package org.gradle.internal.build;
    
    import org.gradle.api.internal.BuildDefinition;
    
    /**
     * A build that is a child of some other build, and whose lifetime is bounded by the lifetime of that containing build.
     */
    public interface NestedBuildState extends BuildState {
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 29 06:14:23 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfr/python/composite.py

        self._attrs = attrs
        self._derived_attrs = derived_attrs
        self._outputs = outputs
    
      def __call__(self, compose_fn):
        # TODO(fengliuai): more sanity check of the input function and make sure
        # the bounded arguments of the function matches the 'inputs' and 'attrs'.
        setattr(compose_fn, '_tfr_op_name', self._op_name)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 28 21:37:05 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc

        for (auto asset : llvm::make_early_inc_range(module.getOps<AssetOp>())) {
          if (symbol_table.symbolKnownUseEmpty(asset, module)) {
            asset.erase();
          }
        }
      }
    
     private:
      // Replaces bounded-input arguments of the function with constant ops in the
      // body and removes the arguments.
      void RewriteFunction(const SymbolTable& symbol_table, func::FuncOp func) {
        if (func.getNumArguments() == 0) {
          return;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top