Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,284 for outC (0.23 sec)

  1. src/testing/run_example.go

    	defer func() {
    		timeSpent := time.Since(start)
    
    		// Close pipe, restore stdout, get output.
    		w.Close()
    		os.Stdout = stdout
    		out := <-outC
    
    		err := recover()
    		ok = eg.processRunResult(out, timeSpent, finished, err)
    	}()
    
    	// Run example.
    	eg.F()
    	finished = true
    	return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:56:32 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. src/go/doc/testdata/example.go

    		w.Close()
    		os.Stdout, os.Stderr = stdout, stderr
    		out := <-outC
    
    		// report any errors
    		tstr := fmt.Sprintf("(%.2f seconds)", dt.Seconds())
    		if g, e := strings.TrimSpace(out), strings.TrimSpace(eg.Output); g != e {
    			fmt.Printf("--- FAIL: %s %s\ngot:\n%s\nwant:\n%s\n",
    				eg.Name, tstr, g, e)
    			ok = false
    		} else if *chatty {
    			fmt.Printf("--- PASS: %s %s\n", eg.Name, tstr)
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  3. src/cmd/go/internal/work/exec.go

    			}
    		}
    		var out []byte
    		out, err = sh.runOut(p.Dir, nil, b.PkgconfigCmd(), "--cflags", pcflags, "--", pkgs)
    		if err != nil {
    			desc := b.PkgconfigCmd() + " --cflags " + strings.Join(pcflags, " ") + " -- " + strings.Join(pkgs, " ")
    			return nil, nil, sh.reportCmd(desc, "", out, err)
    		}
    		if len(out) > 0 {
    			cflags, err = splitPkgConfigOutput(bytes.TrimSpace(out))
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  4. src/os/exec/exec_test.go

    	}
    
    	outc := make(chan []byte, 1)
    	go func() {
    		b, err := io.ReadAll(out)
    		if err != nil {
    			t.Error(err)
    		}
    		outc <- b
    	}()
    
    	const msg = "O:Hello, pipe!\n"
    
    	_, err = io.WriteString(in, msg)
    	if err != nil {
    		t.Fatal(err)
    	}
    	in.Close()
    
    	b := <-outc
    	if !bytes.Equal(b, []byte(msg)) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/encapsulate_xla_computations_pass_test.cc

        add_attrs(g.node());
    
        auto out0 = ops::XlaClusterOutput(scope.WithOpName("Out0"), b_identity);
        auto out1 = ops::XlaClusterOutput(scope.WithOpName("Out1"), e);
        auto out2 = ops::XlaClusterOutput(scope.WithOpName("Out2"), g);
        auto out3 = ops::XlaClusterOutput(scope.WithOpName("Out3"), read_u);
    
        auto consumer0_a = ops::Identity(scope.WithOpName("consumer0_a"), out0);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 16 18:03:15 UTC 2023
    - 14.7K bytes
    - Viewed (0)
  6. src/internal/zstd/literals.go

    			if err != nil {
    				return nil, err
    			}
    			outbuf[out4] = byte(t4 >> 8)
    			out4++
    			rbr4.cnt -= uint32(t4 & 0xff)
    		}
    
    		outbuf[out1] = byte(t1 >> 8)
    		out1++
    		rbr1.cnt -= uint32(t1 & 0xff)
    
    		outbuf[out2] = byte(t2 >> 8)
    		out2++
    		rbr2.cnt -= uint32(t2 & 0xff)
    
    		outbuf[out3] = byte(t3 >> 8)
    		out3++
    		rbr3.cnt -= uint32(t3 & 0xff)
    	}
    
    	return outbuf, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 14:30:10 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.h

    // We will only calculate for the "necessary" tensor transferred.
    // from_graph & to_graph are used to compute the "necessary" tensors.
    //     from_graph
    //    /    \   \
    //  out1   out2  out3
    //           \   /
    //           to_graph
    // So only out2 & out3 are counted.
    float GetTransferCost(const std::string& from_hardware_str,
                          const std::string& to_hardware_str,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 19 00:13:50 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  8. src/crypto/tls/prf_test.go

    	for i, test := range testSplitPreMasterSecretTests {
    		in, _ := hex.DecodeString(test.in)
    		out1, out2 := splitPreMasterSecret(in)
    		s1 := hex.EncodeToString(out1)
    		s2 := hex.EncodeToString(out2)
    		if s1 != test.out1 || s2 != test.out2 {
    			t.Errorf("#%d: got: (%s, %s) want: (%s, %s)", i, s1, s2, test.out1, test.out2)
    		}
    	}
    }
    
    type testKeysFromTest struct {
    	version                                        uint16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 27 22:24:05 UTC 2019
    - 5.7K bytes
    - Viewed (0)
  9. src/cmd/fix/main_test.go

    				}()
    			}
    
    			// Apply fix: should get tt.Out.
    			out, fixed, ok := parseFixPrint(t, tt.Fn, tt.Name, tt.In, true)
    			if !ok {
    				return
    			}
    
    			// reformat to get printing right
    			out, _, ok = parseFixPrint(t, fnop, tt.Name, out, false)
    			if !ok {
    				return
    			}
    
    			if tt.Out == "" {
    				tt.Out = tt.In
    			}
    			if out != tt.Out {
    				t.Errorf("incorrect output.\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 05:31:47 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. pilot/pkg/security/authz/builder/builder_test.go

    	}
    	if forTCP {
    		out := &listener.Filter{}
    		if err := protomarshal.ApplyYAML(string(data), out); err != nil {
    			t.Fatalf("failed to parse YAML: %v", err)
    		}
    		return out
    	}
    	out := &hcm.HttpFilter{}
    	if err := protomarshal.ApplyYAML(string(data), out); err != nil {
    		t.Fatalf("failed to parse YAML: %v", err)
    	}
    	return out
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 13.8K bytes
    - Viewed (0)
Back to top