Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for tf_xla_enable_xla_devices (0.36 sec)

  1. tensorflow/compiler/jit/xla_cpu_device.cc

    };
    
    Status XlaCpuDeviceFactory::ListPhysicalDevices(std::vector<string>* devices) {
      XlaDeviceFlags* flags = GetXlaDeviceFlags();
      if (!flags->tf_xla_enable_xla_devices && !XlaDevicesCreationRequired()) {
        VLOG(1) << "Not creating XLA devices, tf_xla_enable_xla_devices not set "
                   "and XLA device creation not requested";
        return absl::OkStatus();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_gpu_device.cc

    };
    
    Status XlaGpuDeviceFactory::ListPhysicalDevices(std::vector<string>* devices) {
      XlaDeviceFlags* flags = GetXlaDeviceFlags();
      if (!flags->tf_xla_enable_xla_devices && !XlaDevicesCreationRequired()) {
        VLOG(1) << "Not creating XLA devices, tf_xla_enable_xla_devices not set "
                   "and XLA devices creation not required";
        return absl::OkStatus();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/device_context_test.cc

      auto& rollout_config = GetXlaOpsCommonFlags()->tf_xla_use_device_api;
      rollout_config.enabled_for_xla_launch_ = true;
      rollout_config.enabled_for_compile_on_demand_ = true;
    
      tensorflow::GetXlaDeviceFlags()->tf_xla_enable_xla_devices = true;
      return true;
    }();
    
    class DeviceContextTest : public ::testing::Test {
     public:
      void SetDevice(const string& device_type) {
        auto& rollout_config = GetXlaOpsCommonFlags()->tf_xla_use_device_api;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/flags.cc

                "Switch a device into 'on-demand' mode, where instead of "
                "autoclustering ops are compiled one by one just-in-time."),
    
           Flag("tf_xla_enable_xla_devices",
                &device_flags->tf_xla_enable_xla_devices,
                "Generate XLA_* devices, where placing a computation on such a "
                "device"
                "forces compilation by XLA. Deprecated."),
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 18:52:57 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/xla_platform_info_test.cc

        DeviceCompiler<xla::PjRtLoadedExecutable, xla::PjRtClient>;
    
    class XlaPlatformInfoTest : public ::testing::Test {
     protected:
      void SetUp() override {
        tensorflow::GetXlaDeviceFlags()->tf_xla_enable_xla_devices = true;
        tensorflow::GetMarkForCompilationPassFlags()
            ->tf_xla_persistent_cache_directory = "";
        tensorflow::GetMarkForCompilationPassFlags()
            ->tf_xla_persistent_cache_device_types = "";
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Jan 14 15:17:12 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/xla_launch_util_gpu_test.cc

        rollout_config.enabled_for_gpu_ = true;
    
        // Set flag to enable using XLA devices. PJRT currently is only supported
        // for XLA devices.
        GetXlaDeviceFlags()->tf_xla_enable_xla_devices = true;
    
        // Add and setup the GPU device.
        auto device_type = DeviceType(DEVICE_GPU);
        auto jit_device_type = DeviceType(DEVICE_GPU);
        rollout_config.AllowForDeviceInXlaLaunch(device_type);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 10K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/xla_compiler_options_util_test.cc

    }
    
    class XlaCompilerOptionsTest : public ::testing::Test {
     protected:
      void SetUp() override {
        tensorflow::GetXlaDeviceFlags()->tf_xla_enable_xla_devices = true;
      }
    
      DeviceSetup device_setup_;
    };
    
    TEST_F(XlaCompilerOptionsTest, PjRtOptionsXlaDevice) {
      device_setup_.AddDevicesAndSetUp({DEVICE_XLA_GPU});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 29 01:41:20 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/flags.h

      // feature is battle-tested, we will switch this to be a session option.
      bool tf_xla_compile_on_demand;
    
      // Enables "XLA" devices if this flag is set.
      bool tf_xla_enable_xla_devices;
    };
    
    // Flags common to the _Xla* ops and their kernels.
    struct XlaOpsCommonFlags {
      // If true, _XlaCompile always refuses to compile the cluster, which means the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 18:52:57 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/xla_launch_util_test.cc

        rollout_config.enabled_for_compile_on_demand_ = true;
    
        // Set flag to enable using XLA devices. PJRT currently is only supported
        // for XLA devices.
        GetXlaDeviceFlags()->tf_xla_enable_xla_devices = true;
    
        // Add and setup the XLA_CPU device.
        auto device_type = DeviceType(DEVICE_XLA_CPU);
        rollout_config.AllowForDeviceInXlaLaunch(device_type);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/mark_for_compilation_pass_test.cc

    #include "tensorflow/core/platform/test.h"
    
    using ::tensorflow::testing::FindNodeByName;
    
    namespace tensorflow {
    namespace {
    
    static bool Initialized = [] {
      tensorflow::GetXlaDeviceFlags()->tf_xla_enable_xla_devices = true;
      return true;
    }();
    
    REGISTER_OP("UncompilableNullary").Output("o: float");
    REGISTER_OP("UncompilableUnary").Input("a: float").Output("o: float");
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 10:11:10 UTC 2024
    - 79.6K bytes
    - Viewed (0)
Back to top