Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getDeviceName (0.34 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter.cc

    }
    
    bool HasValidHardwareTarget(mlir::Operation* op) {
      // All TFLite ops has CPU interface, should be enough to check for cpu.
      return IsOpSupported(op, "CPU");
    }
    
    std::optional<std::string> GetDeviceName(mlir::Operation* op) {
      if (IsConst(op)) return std::nullopt;
    
      // The model may contain quant stats op which is unrelevant to the
      // execution.
      if (llvm::isa<mlir::func::ReturnOp, mlir::quantfork::StatisticsOp>(op))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 06:11:34 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/vfs/impl/DefaultWatchableFileSystemDetector.java

                    LOGGER.debug("Detected {}: {} from {} (remote: {})",
                        fileSystem.getFileSystemType(),
                        fileSystem.getMountPoint(),
                        fileSystem.getDeviceName(),
                        fileSystem.isRemote()
                    );
                    // We don't support network file systems
                    if (fileSystem.isRemote()) {
                        return true;
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:38:01 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_remote_test_util.cc

        ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
      } else if (!async) {
        // Set the local device to CPU to easily validate mirroring
        string cpu_device_name;
        ASSERT_TRUE(GetDeviceName(ctx, &cpu_device_name, "CPU"));
        TFE_OpSetDevice(matmul, cpu_device_name.c_str(), status);
        EXPECT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
        auto remote_arg =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 11 22:56:03 UTC 2020
    - 9.1K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_test_util.h

                  TFE_TensorHandle* axis);
    
    // If there is a device of type `device_type`, returns true
    // and sets 'device_name' accordingly.
    // `device_type` must be either "GPU" or "TPU".
    bool GetDeviceName(TFE_Context* ctx, tensorflow::string* device_name,
                       const char* device_type);
    
    // Create a ServerDef with the given `job_name` and add `num_tasks` tasks in it.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 17 23:43:59 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_test.cc

      TF_Tensor* t = TFE_TensorHandleResolve(hcpu, status.get());
      ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
    
      // Disable the test if no GPU is present.
      string gpu_device_name;
      if (GetDeviceName(ctx, &gpu_device_name, "GPU")) {
        TFE_TensorHandle* hgpu = TFE_TensorHandleCopyToDevice(
            hcpu, ctx, gpu_device_name.c_str(), status.get());
        ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 03 20:50:20 UTC 2023
    - 94.6K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_test_util.cc

      TFE_OpSetAttrString(op, "recv_device", recv_device.c_str(),
                          recv_device.size());
      TFE_OpSetAttrInt(op, "send_device_incarnation", send_device_incarnation);
    
      return op;
    }
    
    bool GetDeviceName(TFE_Context* ctx, string* device_name,
                       const char* device_type) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_experimental_test.cc

      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
      ASSERT_EQ(0, device_id) << device_id;
    
      // Disable the test if no GPU is present.
      string gpu_device_name;
      if (GetDeviceName(ctx, &gpu_device_name, "GPU")) {
        TFE_TensorHandle* hgpu = TFE_TensorHandleCopyToDevice(
            hcpu, ctx, gpu_device_name.c_str(), status.get());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 03 03:14:26 UTC 2023
    - 31.5K bytes
    - Viewed (0)
Back to top