Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Optional (0.2 sec)

  1. tensorflow/c/eager/dlpack.cc

    #endif
      } else {
        status->status = tensorflow::errors::InvalidArgument(
            "Unsupported Device Type for dlpack");
      }
    
      return ctx;
    }
    
    // Converts DLDevice to TF device name.
    absl::optional<std::string> DeviceNameFromDlContext(const DLDevice& ctx,
                                                        TF_Status* status) {
      switch (ctx.device_type) {
        case DLDeviceType::kDLCPU:
          return "CPU:0";
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 12.8K bytes
    - Viewed (0)
Back to top