Skip to content

Commit

Permalink
Change order of device_type/id in Context (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
tqchen authored May 20, 2017
1 parent 7507ffb commit a6e09b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/dlpack/dlpack.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ typedef enum {
* \brief A Device context for Tensor and operator.
*/
typedef struct {
/*! \brief The device index */
int device_id;
/*! \brief The device type used in the device. */
DLDeviceType device_type;
/*! \brief The device index */
int device_id;
} DLContext;

/*!
Expand Down

0 comments on commit a6e09b5

Please sign in to comment.