Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 28 of 28 for Malloc (0.46 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/quantize_composite_functions.mlir

        return %2 : tensor<1x3xf32>
      }
    // Checks that the quantized XlaCallModule has been replaced by a CallOp, which
    // calls the quantized entry function.
    
    // CHECK: func.func private @quantize_dot_general_fn(%[[ARG_0:.+]]: tensor<1x2xf32>) -> tensor<1x3xf32> attributes {tf._original_func_name = "main_0"}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 05:56:10 UTC 2024
    - 91.6K bytes
    - Viewed (0)
  2. src/bufio/bufio_test.go

    	buf := NewReader(r)
    	allocs := testing.AllocsPerRun(100, func() {
    		r.Seek(0, io.SeekStart)
    		buf.Reset(r)
    
    		_, err := buf.ReadString('\n')
    		if err != nil {
    			t.Fatal(err)
    		}
    	})
    	if allocs != 1 {
    		t.Errorf("Unexpected number of allocations, got %f, want 1", allocs)
    	}
    }
    
    func TestWriter(t *testing.T) {
    	var data [8192]byte
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:56:01 UTC 2023
    - 51.5K bytes
    - Viewed (0)
  3. src/os/os_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	defer f.Close()
    	allocs := testing.AllocsPerRun(100, func() {
    		f.WriteString("I will not allocate when passed a string longer than 32 bytes.\n")
    	})
    	if allocs != 0 {
    		t.Errorf("expected 0 allocs for File.WriteString, got %v", allocs)
    	}
    }
    
    // Test that it's OK to have parallel I/O and Close on a pipe.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-v2.go

    func metaDataPoolPut(buf []byte) {
    	if cap(buf) >= metaDataReadDefault && cap(buf) < metaDataReadDefault*4 {
    		//nolint:staticcheck // SA6002 we are fine with the tiny alloc
    		metaDataPool.Put(buf)
    	}
    }
    
    // readXLMetaNoData will load the metadata, but skip data segments.
    // This should only be used when data is never interesting.
    // If data is not xlv2, it is returned in full.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 29 19:14:09 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  5. cmd/erasure-server-pool.go

    			// it will fail anyways, however if there is quorum available
    			// with enough disks online but sufficiently inconsistent to
    			// break parity threshold, allow them to be overwritten
    			// or allow new versions to be added.
    
    			return pinfo, z.poolsWithObject(poolObjInfos, opts), nil
    		}
    		defPool = pinfo
    		if !isErrObjectNotFound(pinfo.Err) {
    			return pinfo, noReadQuorumPools, pinfo.Err
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 11:58:12 UTC 2024
    - 82.5K bytes
    - Viewed (0)
  6. src/crypto/tls/conn.go

    	err     error  // first permanent error
    	version uint16 // protocol version
    	cipher  any    // cipher algorithm
    	mac     hash.Hash
    	seq     [8]byte // 64-bit sequence number
    
    	scratchBuf [13]byte // to avoid allocs; interface method args escape
    
    	nextCipher any       // next encryption state
    	nextMac    hash.Hash // next MAC algorithm
    
    	level         QUICEncryptionLevel // current QUIC encryption level
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_test.cc

    }
    
    TEST_F(CApiAttributesTest, StringTensor) {
      // Create the string-Tensor "attribute" value.
      const char test_string[] =
          "borkborkborkborkborkborkborkbork";  // >24bytes to force heap alloc
      TF_TString tstr[1];
      TF_TString_Init(&tstr[0]);
      TF_TString_Copy(&tstr[0], test_string, sizeof(test_string) - 1);
    
      auto deallocator = [](void* data, size_t len, void* arg) {};
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  8. src/testing/testing.go

    		f, err := os.Create(toOutputDir(*memProfile))
    		if err != nil {
    			fmt.Fprintf(os.Stderr, "testing: %s\n", err)
    			os.Exit(2)
    		}
    		runtime.GC() // materialize all statistics
    		if err = m.deps.WriteProfileTo("allocs", f, 0); err != nil {
    			fmt.Fprintf(os.Stderr, "testing: can't write %s: %s\n", *memProfile, err)
    			os.Exit(2)
    		}
    		f.Close()
    	}
    	if *blockProfile != "" && *blockProfileRate >= 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
Back to top