Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TF_GetDeviceId (0.12 sec)

  1. tensorflow/c/kernels.h

    // is set; otherwise returns the id in the device name. Please refer to
    // tensorflow/tsl/framework/device_id.h for more details.
    // For mobile or slim build, returns the id in the device name.
    TF_CAPI_EXPORT extern int TF_GetDeviceId(TF_OpKernelContext* ctx);
    
    // Returns the Device Name of the device that the context possesses.
    //
    // The returned TF_StringView's underlying string is owned by the OpKernel and
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 09 22:46:22 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  2. tensorflow/c/kernels.cc

          ->frame_iter()
          .iter_id;
    }
    
    int64_t TF_GetStepId(TF_OpKernelContext* ctx) {
      return reinterpret_cast<::tensorflow::OpKernelContext*>(ctx)->step_id();
    }
    
    int TF_GetDeviceId(TF_OpKernelContext* ctx) {
      // TensorFlow always sets device in OpKernelContext.
      const tensorflow::DeviceBase* device_base =
          reinterpret_cast<tensorflow::OpKernelContext*>(ctx)->device();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 36K bytes
    - Viewed (0)
Back to top