- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for Optional (0.22 sec)
-
tensorflow/c/c_api.cc
==============================================================================*/ #include "tensorflow/c/c_api.h" #include <algorithm> #include <cstring> #include <limits> #include <memory> #include <optional> #include <unordered_set> #include <utility> #include <vector> #include "absl/strings/match.h" // Required for IS_MOBILE_PLATFORM #include "tensorflow/core/platform/platform.h" // NOLINT
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 102.3K bytes - Viewed (0) -
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) -
tensorflow/c/eager/parallel_device/parallel_device_lib.cc
TF_Message(first_bad_status.get())); } } absl::optional<std::vector<std::unique_ptr<ParallelTensor>>> ParallelDevice::Join( const std::vector<PartialTensorShape>& expected_output_shapes, TF_Status* status) const { absl::optional<std::vector<std::unique_ptr<ParallelTensor>>> result; // Compute per-device per-output tensors
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri Feb 09 07:47:20 GMT 2024 - 25.4K bytes - Viewed (1) -
tensorflow/c/eager/c_api.cc
void TFE_RegisterCustomDevice(TFE_Context* ctx, TFE_CustomDevice device, const char* device_name, void* device_info, TF_Status* status) { // Fill in default values for optional functionality. if (device.pack == nullptr) { device.pack = &DefaultCustomDevicePack; } auto custom_device = std::make_unique<tensorflow::CustomDeviceAPI>( ctx, device, device_info, device_name);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Mar 12 20:00:09 GMT 2024 - 43.9K bytes - Viewed (2)