Searched refs:TF_DeviceList (Results 1 – 12 of 12) sorted by relevance
/external/tensorflow/tensorflow/c/ |
D | c_api.h | 1366 typedef struct TF_DeviceList TF_DeviceList; typedef 1372 TF_CAPI_EXPORT extern TF_DeviceList* TF_SessionListDevices(TF_Session* session, 1379 TF_CAPI_EXPORT extern TF_DeviceList* TF_DeprecatedSessionListDevices( 1383 TF_CAPI_EXPORT extern void TF_DeleteDeviceList(TF_DeviceList* list); 1386 TF_CAPI_EXPORT extern int TF_DeviceListCount(const TF_DeviceList* list); 1395 TF_CAPI_EXPORT extern const char* TF_DeviceListName(const TF_DeviceList* list, 1406 TF_CAPI_EXPORT extern const char* TF_DeviceListType(const TF_DeviceList* list, 1415 const TF_DeviceList* list, int index, TF_Status* status); 1422 const TF_DeviceList* list, int index, TF_Status* status);
|
D | c_api_internal.h | 154 struct TF_DeviceList { struct
|
D | c_api.cc | 588 void TF_DeleteDeviceList(TF_DeviceList* list) { delete list; } in TF_DeleteDeviceList() 590 TF_DeviceList* TF_SessionListDevices(TF_Session* session, TF_Status* status) { in TF_SessionListDevices() 591 TF_DeviceList* response = new TF_DeviceList; in TF_SessionListDevices() 596 TF_DeviceList* TF_DeprecatedSessionListDevices(TF_DeprecatedSession* session, in TF_DeprecatedSessionListDevices() 598 TF_DeviceList* response = new TF_DeviceList; in TF_DeprecatedSessionListDevices() 603 int TF_DeviceListCount(const TF_DeviceList* list) { in TF_DeviceListCount() 608 return_type method_name(const TF_DeviceList* list, const int index, \
|
D | c_api_test.cc | 70 std::unique_ptr<TF_DeviceList, decltype(&TF_DeleteDeviceList)> list( in GPUDeviceName() 72 TF_DeviceList* device_list = list.get(); in GPUDeviceName()
|
/external/tensorflow/tensorflow/python/client/ |
D | tf_session_wrapper.cc | 95 PYBIND11_MAKE_OPAQUE(TF_DeviceList); 1043 TF_DeviceList* output = TF_SessionListDevices(session, status.get()); in PYBIND11_MODULE() 1050 [](const TF_DeviceList* list) { return TF_DeviceListCount(list); }); in PYBIND11_MODULE() 1052 m.def("TF_DeviceListName", [](const TF_DeviceList* list, int index) { in PYBIND11_MODULE() 1060 m.def("TF_DeviceListType", [](const TF_DeviceList* list, int index) { in PYBIND11_MODULE() 1068 m.def("TF_DeviceListMemoryBytes", [](const TF_DeviceList* list, int index) { in PYBIND11_MODULE() 1076 m.def("TF_DeviceListIncarnation", [](const TF_DeviceList* list, int index) { in PYBIND11_MODULE()
|
/external/tensorflow/tensorflow/python/ |
D | tfe_wrapper.cc | 68 PYBIND11_MAKE_OPAQUE(TF_DeviceList); 323 py::class_<TF_DeviceList> TF_DeviceList_class(m, "TF_DeviceList"); in PYBIND11_MODULE() 775 m.def("TF_DeviceListName", [](const TF_DeviceList* list, int index) { in PYBIND11_MODULE() 782 m.def("TF_DeviceListType", [](const TF_DeviceList* list, int index) { in PYBIND11_MODULE()
|
/external/tensorflow/tensorflow/c/eager/ |
D | c_api.h | 102 TF_CAPI_EXPORT extern TF_DeviceList* TFE_ContextListDevices(TFE_Context* ctx,
|
D | c_api_test_util.cc | 211 TF_DeviceList* devices = TFE_ContextListDevices(ctx, status.get()); in GetDeviceName()
|
D | c_api.cc | 746 TF_DeviceList* TFE_ContextListDevices(TFE_Context* ctx, TF_Status* status) { in TFE_ContextListDevices() 747 TF_DeviceList* l = new TF_DeviceList; in TFE_ContextListDevices()
|
D | c_api_test.cc | 136 TF_DeviceList* devices = TFE_ContextListDevices(ctx, status); in TEST() 183 TF_DeviceList* devices = TFE_ContextListDevices(ctx, status.get()); in TensorHandleCopyBetweenDevices() 300 TF_DeviceList* devices = TFE_ContextListDevices(ctx, status.get()); in TensorHandleCopyBetweenTwoGPUDevices()
|
D | c_api_experimental_test.cc | 513 TF_DeviceList* devices = TFE_ContextListDevices(ctx, status); in TEST()
|
/external/tensorflow/tensorflow/go/ |
D | session.go | 83 func deviceSliceFromDeviceList(list *C.TF_DeviceList) ([]Device, error) { argument
|