Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 83 for Ftruncate (0.15 sec)

  1. src/time/time_test.go

    		// Compute quotient and remainder mod d.
    		bd.SetInt64(int64(d))
    		bq.DivMod(bt, bd, br)
    
    		// To truncate, subtract remainder.
    		// br is < d, so it fits in an int64.
    		r := br.Int64()
    		t1 := t0.Add(-Duration(r))
    
    		// Check that time.Truncate works.
    		if trunc := t0.Truncate(d); trunc != t1 {
    			t.Errorf("Time.Truncate(%s, %s) = %s, want %s\n"+
    				"%v trunc %v =\n%v want\n%v",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  2. src/time/time.go

    	t.setLoc(loc)
    	return t
    }
    
    // Truncate returns the result of rounding t down to a multiple of d (since the zero time).
    // If d <= 0, Truncate returns t stripped of any monotonic clock reading but otherwise unchanged.
    //
    // Truncate operates on the time as an absolute duration since the
    // zero time; it does not operate on the presentation form of the
    // time. Thus, Truncate(Hour) may return a time with a non-zero
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfrt/tests/mlrt/while_to_map_fn.mlir

      %4 = "tf.GatherV2"(%cst_1, %arg1, %cst_0) {batch_dims = 0 : i64, device = "/job:localhost/replica:0/task:0/device:CPU:0"} : (tensor<3xi32>, tensor<i32>, tensor<i32>) -> tensor<i32>
      %5 = "tf.Cast"(%4) {Truncate = false, device = "/job:localhost/replica:0/task:0/device:CPU:0"} : (tensor<i32>) -> tensor<f32>
      %6 = "tf.Mul"(%5, %cst) {device = "/job:localhost/replica:0/task:0/device:CPU:0"} : (tensor<f32>, tensor<9xf32>) -> tensor<9xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 06:40:22 UTC 2024
    - 68.6K bytes
    - Viewed (0)
  4. pkg/proxy/nftables/proxier.go

    	servicePortFirewallChainNamePrefix      = "firewall-"
    )
    
    // hashAndTruncate prefixes name with a hash of itself and then truncates to
    // chainNameBaseLengthMax. The hash ensures that (a) the name is still unique if we have
    // to truncate the end, and (b) it's visually distinguishable from other chains that would
    // otherwise have nearly identical names (e.g., different endpoint chains for a given
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 08 13:48:54 UTC 2024
    - 55.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

    static Value CreateTFCastOpF32(OpBuilder *builder, Location loc, Value x,
                                   BoolAttr truncate) {
      auto x_type = mlir::dyn_cast_or_null<ShapedType>(x.getType());
      if (!x_type) llvm_unreachable("unsupported type");
      Type type = x_type.clone(builder->getF32Type());
      return builder->create<CastOp>(loc, type, x, truncate);
    }
    
    // Returns a TF_CastOp to I32. This function is used for CastOps that are
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  6. src/vendor/golang.org/x/net/dns/dnsmessage/message.go

    		"ID: " + printUint16(m.ID) + ", " +
    		"Response: " + printBool(m.Response) + ", " +
    		"OpCode: " + m.OpCode.GoString() + ", " +
    		"Authoritative: " + printBool(m.Authoritative) + ", " +
    		"Truncated: " + printBool(m.Truncated) + ", " +
    		"RecursionDesired: " + printBool(m.RecursionDesired) + ", " +
    		"RecursionAvailable: " + printBool(m.RecursionAvailable) + ", " +
    		"AuthenticData: " + printBool(m.AuthenticData) + ", " +
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 00:09:40 UTC 2024
    - 69K bytes
    - Viewed (0)
  7. src/bytes/bytes_test.go

    		if err := recover(); err == nil {
    			t.Fatal("Truncate(-1) should have panicked")
    		}
    	}()
    	var b Buffer
    	b.Truncate(-1)
    }
    
    func TestBufferTruncateOutOfRange(t *testing.T) {
    	defer func() {
    		if err := recover(); err == nil {
    			t.Fatal("Truncate(20) should have panicked")
    		}
    	}()
    	var b Buffer
    	b.Write(make([]byte, 10))
    	b.Truncate(20)
    }
    
    var containsTests = []struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  8. cmd/xl-storage-format-v2.go

    			for _, ver := range vers {
    				// Truncate later modtimes, not selected.
    				if ver.header.ModTime > latest.header.ModTime {
    					versions[i] = versions[i][1:]
    					continue
    				}
    				// Truncate matches
    				if ver.header == latest.header {
    					versions[i] = versions[i][1:]
    					continue
    				}
    
    				// Truncate non-empty version and type matches
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 29 19:14:09 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tests/prepare-tf.mlir

      // CHECK-LABEL: add_v2_uint32
      // CHECK:  %[[CAST:.*]] = "tf.Cast"(%arg0) <{Truncate = false}> : (tensor<ui32>) -> tensor<i32>
      // CHECK:  %[[CAST1:.*]] = "tf.Cast"(%arg1) <{Truncate = false}> : (tensor<ui32>) -> tensor<i32>
      // CHECK:  %[[ADD:.*]] = "tf.AddV2"(%[[CAST]], %[[CAST1]]) : (tensor<i32>, tensor<i32>) -> tensor<i32>
      // CHECK:  %[[CAST2:.*]] = "tf.Cast"(%[[ADD]]) <{Truncate = false}> : (tensor<i32>) -> tensor<ui32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 29 07:26:59 UTC 2024
    - 59.8K bytes
    - Viewed (0)
  10. src/runtime/mprof.go

    	// we need extra space in order to avoid getting fewer than the
    	// desired maximum number of frames after expansion.
    	// This should be at least as large as the largest skip value
    	// used for profiling; otherwise stacks may be truncated inconsistently
    	maxSkip = 5
    
    	// maxProfStackDepth is the highest valid value for debug.profstackdepth.
    	// It's used for the bucket.stk func.
    	// TODO(fg): can we get rid of this?
    	maxProfStackDepth = 1024
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
Back to top