Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for mallocmove (0.13 sec)

  1. src/runtime/slice_test.go

    	"testing"
    )
    
    const N = 20
    
    func BenchmarkMakeSliceCopy(b *testing.B) {
    	const length = 32
    	var bytes = make([]byte, 8*length)
    	var ints = make([]int, length)
    	var ptrs = make([]*byte, length)
    	b.Run("mallocmove", func(b *testing.B) {
    		b.Run("Byte", func(b *testing.B) {
    			var x []byte
    			for i := 0; i < b.N; i++ {
    				x = make([]byte, len(bytes))
    				copy(x, bytes)
    			}
    		})
    		b.Run("Int", func(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 17 09:45:44 UTC 2020
    - 10.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/aot/codegen_test_h.golden

          set_static_data_hlo_profile_printer_data(
              data, StaticHloProfilePrinterData());
    
          return data;
        }();
        return *kStaticData;
      }
    
      MyClass(AllocMode alloc_mode =
                AllocMode::ARGS_VARIABLES_RESULTS_PROFILES_AND_TEMPS)
          : XlaCompiledCpuFunction(StaticData(), alloc_mode) {}
    
      MyClass(const MyClass&) = delete;
      MyClass& operator=(const MyClass&) = delete;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 01:20:01 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/aot/codegen.cc

              data, StaticHloProfilePrinterData());
    {{ASSIGN_PROFILE_COUNTERS_SIZE}}
          return data;
        }();
        return *kStaticData;
      }
    
      {{CLASS}}(AllocMode alloc_mode =
                AllocMode::ARGS_VARIABLES_RESULTS_PROFILES_AND_TEMPS)
          : XlaCompiledCpuFunction(StaticData(), alloc_mode) {}
    
      {{CLASS}}(const {{CLASS}}&) = delete;
      {{CLASS}}& operator=(const {{CLASS}}&) = delete;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 01:20:01 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/aot/tests/tfcompile_test.cc

    }
    
    // Run tests that use set_argN_data separately, to avoid accidentally re-using
    // non-existent buffers.
    TEST(TFCompileTest, Add_SetArg) {
      AddComp add(
          XlaCompiledCpuFunction::AllocMode::RESULTS_PROFILES_AND_TEMPS_ONLY);
    
      int32 arg_x = 10;
      int32 arg_y = 32;
      add.set_arg0_data(&arg_x);
      add.set_arg1_data(&arg_y);
      EXPECT_EQ(add.arg0_data(), add.arg_data(0));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 26.4K bytes
    - Viewed (0)
Back to top