Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for Ftruncate (0.15 sec)

  1. cmd/kubeadm/app/util/certs/util.go

    // the expected NotBefore. Truncate (round) expectedNotBefore to 1 second, since the certificate stores
    // with seconds as the maximum precision.
    func AssertCertificateHasNotBefore(t *testing.T, cert *x509.Certificate, expectedNotBefore time.Time) {
    	truncated := expectedNotBefore.Truncate(time.Second)
    	if !cert.NotBefore.Equal(truncated) {
    		t.Errorf("cert has NotBefore %v, expected %v", cert.NotBefore, truncated)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. pkg/kubelet/util/util_windows.go

    // GetBootTime returns the time at which the machine was started, truncated to the nearest second
    func GetBootTime() (time.Time, error) {
    	currentTime := time.Now()
    	output, _, err := tickCount.Call()
    	if errno, ok := err.(syscall.Errno); !ok || errno != 0 {
    		return time.Time{}, err
    	}
    	return currentTime.Add(-time.Duration(output) * time.Millisecond).Truncate(time.Second), nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/tests/quantize.mlir

    // CHECK: %[[fcast:.*]] = "tf.Cast"(%[[sc1]]) <{Truncate = false}> : (tensor<*xi8>) -> tensor<*xf32>
    // CHECK: %[[avgpool_f32:.*]] = "tf.AvgPool"(%[[fcast]])
    // CHECK-SAME: (tensor<*xf32>) -> tensor<*xf32>
    // CHECK: %[[round:.*]] = "tf.Round"(%[[avgpool_f32]])
    // CHECK: %[[icast:.*]] = "tf.Cast"(%[[round]]) <{Truncate = false}> : (tensor<*xf32>) -> tensor<*xi8>
    // CHECK: %[[sc2:.*]] = "quantfork.scast"(%[[icast]])
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 19:32:28 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/utils/const_tensor_utils.h

                                mlir::Builder builder);
    
    absl::StatusOr<mlir::ElementsAttr> ConvertIntBuffer(
        mlir::RankedTensorType shaped_type, const std::vector<uint8_t>& buffer,
        bool truncate = false);
    
    absl::StatusOr<mlir::ElementsAttr> ConvertFloatBuffer(
        mlir::RankedTensorType shaped_type, const std::vector<uint8_t>& buffer);
    
    tensorflow::TensorProto ConvertTfliteConstTensor(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. docs/distributed/distributed-from-config-file.sh

    export MC_HOST_minio3=http://minr0otUS2r:pBU94AGAY85e@localhost:9003
    
    ./mc ready minio1
    ./mc ready minio3
    
    ./mc mb minio1/testbucket
    # copy large upload to newbucket on minio1
    truncate -s 17M lrgfile
    expected_checksum=$(cat ./lrgfile | md5sum)
    
    ./mc cp ./lrgfile minio1/testbucket
    
    actual_checksum=$(./mc cat minio3/testbucket/lrgfile | md5sum)
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat May 18 18:19:01 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. platforms/core-runtime/wrapper-shared/src/main/java/org/gradle/wrapper/PathAssembler.java

         * <p>
         * The algorithm in use by this method is as follows:
         * <ol>
         *    <li>Compute the MD5 value of the UTF-8 {@code string}.</li>
         *    <li>Truncate leading zeros (i.e., treat the MD5 value as a number).</li>
         *    <li>Convert to base 36 (the characters {@code 0-9a-z}).</li>
         * </ol>
         */
        @SuppressWarnings("StringCharset")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. src/go/ast/commentmap.go

    		//       Just do it explicitly.
    		for _, comment := range group.List {
    			if buf.Len() >= maxLen {
    				break loop
    			}
    			buf.WriteString(comment.Text)
    		}
    	}
    
    	// truncate if too long
    	if buf.Len() > maxLen {
    		buf.Truncate(maxLen - 3)
    		buf.WriteString("...")
    	}
    
    	// replace any invisibles with blanks
    	bytes := buf.Bytes()
    	for i, b := range bytes {
    		switch b {
    		case '\t', '\n', '\r':
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  8. cmd/admin-server-info.go

    		// For example, if len(stats.PauseQuantiles) is 5, it will be
    		// filled with the minimum, 25%, 50%, 75%, and maximum pause times.
    		PauseQuantiles: make([]time.Duration, 5),
    	}
    	debug.ReadGCStats(&gcStats)
    	// Truncate GC stats to max 5 entries.
    	if len(gcStats.PauseEnd) > 5 {
    		gcStats.PauseEnd = gcStats.PauseEnd[len(gcStats.PauseEnd)-5:]
    	}
    	if len(gcStats.Pause) > 5 {
    		gcStats.Pause = gcStats.Pause[len(gcStats.Pause)-5:]
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. src/os/user/cgo_lookup_unix.go

    		// Additionally, not all Linux systems have it, either. For
    		// example, the musl libc returns -1.
    		return 1024
    	}
    	if !isSizeReasonable(int64(sz)) {
    		// Truncate.  If this truly isn't enough, retryWithBuffer will error on the first run.
    		return maxBufferSize
    	}
    	return _C_size_t(sz)
    }
    
    // retryWithBuffer repeatedly calls f(), increasing the size of the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:08:14 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. pkg/probe/exec/exec_test.go

    		output           string
    		err              error
    	}{
    		// Ok
    		{probe.Success, false, true, "OK", "OK", nil},
    		// Ok
    		{probe.Success, false, true, "OK", "OK", &fakeExitError{true, 0}},
    		// Ok - truncated output
    		{probe.Success, false, true, elevenKilobyte, tenKilobyte, nil},
    		// Run returns error
    		{probe.Unknown, true, true, "", "", fmt.Errorf("test error")},
    		// Unhealthy
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top