- Sort Score
- Result 10 results
- Languages All
Results 11 - 16 of 16 for srcCopy (4.32 sec)
-
staging/src/k8s.io/apiserver/pkg/server/filters/timeout.go
var tw timeoutWriter tw, w = newTimeoutWriter(w) // Make a copy of request and work on it in new goroutine // to avoid race condition when accessing/modifying request (e.g. headers) rCopy := r.Clone(r.Context()) go func() { defer func() { err := recover() // do not wrap the sentinel ErrAbortHandler panic value if err != nil && err != http.ErrAbortHandler {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 8.9K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/measurement/measurement.go
if !compatibleValueTypes(minType, t) { return nil, fmt.Errorf("incompatible types: %v %v", *minType, *t) } if ratio, _ := Scale(1, t.Unit, minType.Unit); ratio < 1 { minType = t } } rcopy := *minType return &rcopy, nil } func compatibleValueTypes(v1, v2 *profile.ValueType) bool { if v1 == nil || v2 == nil { return true // No grounds to disqualify. } // Remove trailing 's' to permit minor mismatches.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 8.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc
broadcasted_rhs); return success(); } LogicalResult matchAndRewrite(SourceOp src_op, PatternRewriter& rewriter) const override { Operation* op = static_cast<Operation*>(src_op); auto lhs = op->getOperand(0); auto rhs = op->getOperand(1); if (!mlir::cast<ShapedType>(lhs.getType()).hasStaticShape() ||
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 20:06:54 UTC 2024 - 45.2K bytes - Viewed (0) -
src/runtime/arena_test.go
t.Error("Clone should not have made a copy") } // Clone should not make a copy of s, since s is a static string. sCopy := UserArenaClone(s) if unsafe.StringData(s) != unsafe.StringData(sCopy) { t.Error("Clone should not have made a copy") } a.Free() } func TestUserArenaClonePointer(t *testing.T) { a := NewUserArena()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 13.4K bytes - Viewed (0) -
pkg/registry/core/pod/storage/eviction_test.go
// same test runs 3 times, make copy of objects to have unique ones evictionCopy := tc.eviction.DeepCopy() prcCopy := tc.prc.DeepCopy() var pdbsCopy []runtime.Object for _, pdb := range tc.pdbs { pdbCopy := pdb.DeepCopyObject()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 09:26:37 UTC 2024 - 40K bytes - Viewed (1) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
ranked_ty.getEncoding()); } template <typename SrcOpT, typename DstOpT> class LowerControlFlowOp : public OpConversionPattern<SrcOpT> { public: using OpConversionPattern<SrcOpT>::OpConversionPattern; LogicalResult matchAndRewrite( SrcOpT op, typename SrcOpT::Adaptor adaptor, ConversionPatternRewriter &rewriter) const override { DstOpT mhlo_op;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0)