Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 174 for roundTrip (0.23 sec)

  1. internal/grid/muxclient.go

    		LastPong:           time.Now().UnixNano(),
    		BaseFlags:          parent.baseFlags,
    		clientPingInterval: parent.clientPingInterval,
    	}
    }
    
    // roundtrip performs a roundtrip, returning the first response.
    // This cannot be used concurrently.
    func (m *muxClient) roundtrip(h HandlerID, req []byte) ([]byte, error) {
    	if m.init {
    		return nil, errors.New("mux client already used")
    	}
    	m.init = true
    	m.singleResp = true
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/transforms.cc

      // on StableHLO, treating StableHLO purely as an input format, and do all
      // optimizations via MHLO passes that can be shared with the OpenXLA compiler.
      // Therefore, this function inserts a StableHLO <=> MHLO roundtrip to make
      // this happen.
    
      // StableHLO -> MHLO legalization.
      pm.addPass(mhlo::createStablehloLegalizeToHloPass());
    
      AddMhloOptimizationPasses(pm, /*enable_stablehlo_quantizer=*/false);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 04:34:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. src/net/http/httputil/dump.go

    			return &dumpConn{io.MultiWriter(&buf, pw), dr}, nil
    		},
    	}
    	defer t.CloseIdleConnections()
    
    	// We need this channel to ensure that the reader
    	// goroutine exits if t.RoundTrip returns an error.
    	// See golang.org/issue/32571.
    	quitReadCh := make(chan struct{})
    	// Wait for the request before replying with a dummy response:
    	go func() {
    		req, err := http.ReadRequest(bufio.NewReader(pr))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. misc/linkcheck/linkcheck.go

    		}
    	}
    }
    
    func doCrawl(url string) error {
    	defer wg.Done()
    
    	req, err := http.NewRequest("GET", url, nil)
    	if err != nil {
    		return err
    	}
    	res, err := http.DefaultTransport.RoundTrip(req)
    	if err != nil {
    		return err
    	}
    	// Handle redirects.
    	if res.StatusCode/100 == 3 {
    		newURL, err := res.Location()
    		if err != nil {
    			return fmt.Errorf("resolving redirect: %v", err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 06 15:53:04 UTC 2021
    - 3.9K bytes
    - Viewed (0)
  5. pkg/api/testing/serialization_test.go

    	"reflect"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    
    	appsv1 "k8s.io/api/apps/v1"
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/api/apitesting/fuzzer"
    	"k8s.io/apimachinery/pkg/api/apitesting/roundtrip"
    	apiequality "k8s.io/apimachinery/pkg/api/equality"
    	"k8s.io/apimachinery/pkg/api/meta"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/conversion"
    	"k8s.io/apimachinery/pkg/runtime"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 11:04:08 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/registry/generic/rest/streamer_test.go

    	}
    	if readCloser != nil {
    		t.Errorf("Expected stream to be nil. Got: %#v", readCloser)
    	}
    }
    
    type testTransport struct {
    	body string
    }
    
    func (tt *testTransport) RoundTrip(req *http.Request) (*http.Response, error) {
    	r := bufio.NewReader(bytes.NewBufferString(tt.body))
    	return http.ReadResponse(r, req)
    }
    
    func fakeTransport(mime, message string) http.RoundTripper {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Feb 27 08:25:24 UTC 2021
    - 5K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/xla_host_send_recv_device_context_test.cc

      TF_ASSERT_OK(stream->BlockHostUntilDone());
    
      tensorflow::test::ExpectClose(origin_cpu_tensor, dest_cpu_tensor);
      device_context->Unref();
    }
    
    TEST_F(XlaHostSendRecvDeviceContextTest, RoundTrip) {
      SetDevice("GPU");
      Tensor origin_cpu_tensor(host_allocator_, DT_FLOAT, TensorShape({2, 2}));
      test::FillValues<float>(&origin_cpu_tensor, {1.2, 2.3, 3.4, 4.5});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  8. src/syscall/wtf8_windows_test.go

    			// utf16.Decode
    			want := utf16.Decode(u16)
    			if string(got) != string(want) {
    				t.Errorf("got:\n%s\nwant:\n%s", string(got), string(want))
    			}
    		}
    		// WTF-8 should always roundtrip
    		got2 := syscall.EncodeWTF16(string(got), nil)
    		if !slices.Equal(got2, u16) {
    			t.Errorf("got:\n%v\nwant:\n%v", got2, u16)
    		}
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 15 09:26:16 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  9. pkg/api/testing/defaulting_test.go

    	"sort"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	fuzz "github.com/google/gofuzz"
    
    	apiv1 "k8s.io/api/core/v1"
    	extensionsv1beta1 "k8s.io/api/extensions/v1beta1"
    	"k8s.io/apimachinery/pkg/api/apitesting/roundtrip"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	"k8s.io/kubernetes/pkg/api/legacyscheme"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  10. src/net/http/client_test.go

    	}
    }
    
    type roundTripperWithoutCloseIdle struct{}
    
    func (roundTripperWithoutCloseIdle) RoundTrip(*Request) (*Response, error) { panic("unused") }
    
    type roundTripperWithCloseIdle func() // underlying func is CloseIdleConnections func
    
    func (roundTripperWithCloseIdle) RoundTrip(*Request) (*Response, error) { panic("unused") }
    func (f roundTripperWithCloseIdle) CloseIdleConnections()               { f() }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
Back to top