Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for argN_data (0.17 sec)

  1. tensorflow/compiler/aot/tests/tfcompile_test.cc

    TEST(TFCompileTest, Add) {
      AddComp add;
      EXPECT_EQ(add.arg0_data(), add.arg_data(0));
      EXPECT_EQ(add.arg1_data(), add.arg_data(1));
    
      add.arg0() = 1;
      add.arg1() = 2;
      EXPECT_TRUE(add.Run());
      EXPECT_EQ(add.error_msg(), "");
      EXPECT_EQ(add.result0(), 3);
      EXPECT_EQ(add.result0_data()[0], 3);
      EXPECT_EQ(add.result0_data(), add.results()[0]);
    
      add.arg0_data()[0] = 123;
      add.arg1_data()[0] = 456;
      EXPECT_TRUE(add.Run());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 26.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/aot/codegen_test_h.golden

      void set_arg0_data(const void* data) {
        set_arg_data(0, data);
      }
      float* arg0_data() {
        return static_cast<float*>(arg_data(0));
      }
      float& arg0(size_t dim0, size_t dim1) {
        return (*static_cast<float(*)[1][2]>(
            arg_data(0)))[dim0][dim1];
      }
      const float* arg0_data() const {
        return static_cast<const float*>(arg_data(0));
      }
      const float& arg0(size_t dim0, size_t dim1) const {
    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

      }
      {{TYPE}}* arg{{NAME}}_data() {
        return static_cast<{{TYPE}}*>(arg_data({{I}}));
      }
      {{TYPE}}& arg{{NAME}}({{DIM_VARS}}) {
        return (*static_cast<{{TYPE}}(*){{DIM_SIZES}}>(
            arg_data({{I}}))){{INDICES}};
      }
      const {{TYPE}}* arg{{NAME}}_data() const {
        return static_cast<const {{TYPE}}*>(arg_data({{I}}));
      }
      const {{TYPE}}& arg{{NAME}}({{DIM_VARS}}) const {
    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/test_google.cc

    // clang-format on
    
    namespace tensorflow {
    namespace tfcompile {
    namespace {
    
    void zero_buffers(XlaCompiledCpuFunction* computation) {
      for (int i = 0; i < computation->num_args(); ++i) {
        memset(computation->arg_data(i), 0, computation->arg_size(i));
      }
    }
    
    // Trivial test that runs the generated function to ensure it doesn't crash.
    TEST(TEST_NAME, NoCrash) {
      Eigen::ThreadPool pool(port::MaxParallelism());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 3K bytes
    - Viewed (0)
  5. tensorflow/compiler/aot/test.cc

    // clang-format on
    
    namespace tensorflow {
    namespace tfcompile {
    namespace {
    
    void zero_buffers(XlaCompiledCpuFunction* computation) {
      for (int i = 0; i < computation->num_args(); ++i) {
        memset(computation->arg_data(i), 0, computation->arg_size(i));
      }
    }
    
    // Trivial test that runs the generated function to ensure it doesn't crash.
    TEST(TEST_NAME, NoCrash) {
      Eigen::ThreadPool pool(port::MaxParallelism());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 3K bytes
    - Viewed (0)
  6. src/internal/trace/traceviewer/static/trace_viewer_full.html

    instantHistogramsByTitle.set(eventName,argsToHistograms);}...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:45:06 UTC 2023
    - 2.5M bytes
    - Viewed (0)
Back to top