Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 155 for roundTrip (0.11 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/cc/pass_pipeline.h

    // Passes for unpacking quantized ops to int valued StableHLO ops. This is
    // useful when uniform quantized types are suboptimal for the hardware. It goes
    // through a StableHLO <-> MHLO roundtrip to utilize the MHLOQuantToInt pass.
    void AddStablehloQuantToIntPasses(OpPassManager& pm);
    
    // Processes tensors with NCHW format (== (batch, channel, height, weight)) by
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 12:53:33 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. src/strconv/ftoa_test.go

    			s := FormatFloat(f, 'e', -1, 64)
    			if x, _ := ParseFloat(s, 64); x != f {
    				t.Errorf("failed roundtrip %v => %s => %v", f, s, x)
    			}
    		}
    		f32 := float32(f)
    		if !math.IsInf(float64(f32), 0) {
    			s := FormatFloat(float64(f32), 'e', -1, 32)
    			if x, _ := ParseFloat(s, 32); float32(x) != f32 {
    				t.Errorf("failed roundtrip %v => %s => %v", f32, s, float32(x))
    			}
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 24 23:50:20 UTC 2022
    - 9.3K bytes
    - Viewed (0)
  3. pkg/apis/batch/v1/defaults_test.go

    			featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.JobPodReplacementPolicy, test.enablePodReplacementPolicy)
    			original := test.original
    			expected := test.expected
    			obj2 := roundTrip(t, runtime.Object(original))
    			actual, ok := obj2.(*batchv1.Job)
    			if !ok {
    				t.Fatalf("Unexpected object: %v", actual)
    			}
    
    			if diff := cmp.Diff(expected.Spec.Suspend, actual.Spec.Suspend); diff != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  4. pkg/spiffe/spiffe_test.go

    				t.Fatal(err)
    			}
    			if !reflect.DeepEqual(got, *tt.expected) {
    				t.Fatalf("expected %#v, got %#v", *tt.expected, got)
    			}
    
    			roundTrip := got.String()
    			if roundTrip != tt.input {
    				t.Fatalf("round trip failed, expected %q got %q", tt.input, roundTrip)
    			}
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/util/net/http_test.go

    			agent := tt.agent
    			if len(agent) == 0 {
    				agent = "-"
    			}
    			expect := WarningHeader{Code: tt.code, Agent: agent, Text: tt.text}
    			if roundTrip != expect {
    				t.Fatalf("after round trip, want:\n%#v\ngot\n%#v", expect, roundTrip)
    			}
    		})
    	}
    }
    
    func TestParseWarningHeaders(t *testing.T) {
    	tests := []struct {
    		name string
    
    		headers []string
    
    		want     []WarningHeader
    		wantErrs []string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 18 01:21:56 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/etcd3/latency_tracker.go

    // round trips (the time it takes to send data to etcd and get the
    // complete response back)
    //
    // If an API request involves N (N>=1) round trips to etcd, then we will sum
    // up the latenciy incurred in each roundtrip.
    
    // It uses the context associated with the request in flight, so there
    // are no states shared among the requests in flight, and so there is no
    // concurrency overhead.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  7. src/cmd/internal/goobj/objfile_test.go

    	wr := &bio.Writer{Writer: bufio.NewWriter(buf)} // hacky: no file, so cannot seek
    	return NewWriter(wr)
    }
    
    func TestReadWrite(t *testing.T) {
    	// Test that we get the same data in a write-read roundtrip.
    
    	// Write a symbol, a relocation, and an aux info.
    	var buf bytes.Buffer
    	w := dummyWriter(&buf)
    
    	var s Sym
    	s.SetABI(1)
    	s.SetType(uint8(objabi.STEXT))
    	s.SetFlag(0x12)
    	s.SetSiz(12345)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:12 UTC 2022
    - 3K bytes
    - Viewed (0)
  8. src/net/http/filetransport.go

    //	c := &http.Client{Transport: t}
    //	res, err := c.Get("file:///etc/passwd")
    //	...
    func NewFileTransportFS(fsys fs.FS) RoundTripper {
    	return NewFileTransport(FS(fsys))
    }
    
    func (t fileTransport) RoundTrip(req *Request) (resp *Response, err error) {
    	// We start ServeHTTP in a goroutine, which may take a long
    	// time if the file is large. The newPopulateResponseWriter
    	// call returns a channel which either ServeHTTP or finish()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top