Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for input_memory_types (0.14 sec)

  1. tensorflow/compiler/jit/xla_kernel_creator.cc

      std::vector<int> resource_arg_indices;
      TF_RETURN_IF_ERROR(GetBodyAndConstantsAndResources(
          flr, function, &fbody, &constant_arg_indices, &resource_arg_indices));
    
      MemoryTypeVector input_memory_types =
          GetInputMemoryTypes(fbody, constant_arg_indices, resource_arg_indices);
      MemoryTypeVector output_memory_types = GetOutputMemoryTypes(fbody);
    
      // Create the kernel.
      Device* dev = flr->device();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 22:24:01 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_kernel_creator_test.cc

      EXPECT_EQ(2, kernel_->num_inputs());
      EXPECT_EQ(DT_FLOAT, kernel_->input_type(0));
      EXPECT_EQ(DT_RESOURCE, kernel_->input_type(1));
      EXPECT_EQ(DEVICE_MEMORY, kernel_->input_memory_types()[0]);
      EXPECT_EQ(HOST_MEMORY, kernel_->input_memory_types()[1]);
    
      EXPECT_EQ(1, kernel_->num_outputs());
      EXPECT_EQ(DT_FLOAT, kernel_->output_type(0));
      EXPECT_EQ(DEVICE_MEMORY, kernel_->output_memory_types()[0]);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 16 01:39:55 UTC 2023
    - 5.7K bytes
    - Viewed (0)
Back to top