Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SetAllowsSyncOnCompletion (0.33 sec)

  1. tensorflow/compiler/jit/xla_tpu_device.cc

        if (!status.ok()) {
          errors::AppendToMessage(&status, "while setting up ", DEVICE_TPU_XLA_JIT,
                                  " device number ", i);
          return status;
        }
        device->SetAllowsSyncOnCompletion(false);
        if (tpu_xla_device_failure_closes_chips_flag) {
          device->SetHandleDeviceErrorCallback(&tpu::TpuNodeContext::CloseTpuHost);
        }
    
        devices->push_back(std::move(device));
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_device.cc

      DeviceContext* device_context;
      TF_ASSIGN_OR_RETURN(device_context, GetDeviceContextDefault());
      return MakeTensorFromProto(device_context, tensor_proto, alloc_attrs, tensor);
    }
    
    void XlaDevice::SetAllowsSyncOnCompletion(bool sync_on_completion) {
      mutex_lock lock(mu_);
      sync_on_completion_ = sync_on_completion;
    }
    
    bool XlaDevice::AllowsSyncOnCompletion() const {
      mutex_lock lock(mu_);
      return sync_on_completion_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 21:05:42 UTC 2024
    - 24.3K bytes
    - Viewed (0)
Back to top