- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for SP_Platform (0.17 sec)
-
tensorflow/c/experimental/stream_executor/stream_executor_test_util.cc
} /*** Functions for creating SP_Platform ***/ void CreateTimerFns(const SP_Platform* platform, SP_TimerFns* timer_fns, TF_Status* status) { TF_SetStatus(status, TF_OK, ""); PopulateDefaultTimerFns(timer_fns); } void DestroyTimerFns(const SP_Platform* platform, SP_TimerFns* timer_fns) {} void CreateStreamExecutor(const SP_Platform* platform,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 21 20:09:00 UTC 2023 - 8.7K bytes - Viewed (0) -
tensorflow/c/experimental/stream_executor/stream_executor.h
// allow_growth is ignored. TF_Bool force_memory_growth; } SP_Platform; #define SP_PLATFORM_STRUCT_SIZE \ TF_OFFSET_OF_END(SP_Platform, force_memory_growth) typedef struct SP_PlatformFns { size_t struct_size; void* ext; // reserved for future use // Callbacks for getting device count void (*get_device_count)(const SP_Platform* platform, int* device_count,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 24 08:40:35 UTC 2022 - 21.6K bytes - Viewed (0) -
tensorflow/c/experimental/stream_executor/stream_executor.cc
using OwnedTFStatus = tensorflow::TF_StatusPtr; namespace { absl::Status ValidateSPPlatform(const SP_Platform& platform) { TF_VALIDATE_STRUCT_SIZE(SP_Platform, platform, SP_PLATFORM_STRUCT_SIZE); TF_VALIDATE_NOT_NULL(SP_Platform, platform, name); TF_VALIDATE_NOT_NULL(SP_Platform, platform, type); TF_RETURN_IF_ERROR( tensorflow::device_utils::ValidateDeviceType(platform.name)); TF_RETURN_IF_ERROR(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jun 14 07:39:19 UTC 2024 - 27.1K bytes - Viewed (0) -
tensorflow/c/experimental/stream_executor/stream_executor_test_util.h
void PopulateDefaultTimerFns(SP_TimerFns* timer_fns); void PopulateDefaultPlatform(SP_Platform* platform, SP_PlatformFns* platform_fns); void PopulateDefaultPlatformRegistrationParams( SE_PlatformRegistrationParams* const params); void DestroyPlatform(SP_Platform* platform); void DestroyPlatformFns(SP_PlatformFns* platform_fns); } // namespace test_util
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 17 01:32:30 UTC 2021 - 1.9K bytes - Viewed (0) -
tensorflow/c/experimental/stream_executor/stream_executor_internal.h
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jun 14 07:39:19 UTC 2024 - 8K bytes - Viewed (0) -
tensorflow/c/experimental/stream_executor/stream_executor_test.cc
absl::Status status = InitStreamExecutorPlugin(plugin_init, &device_type, &platform_name); ASSERT_EQ(status.code(), tensorflow::error::FAILED_PRECONDITION); ASSERT_EQ(status.message(), "'name' field in SP_Platform must be set."); } TEST(StreamExecutor, InvalidNameWithSemicolon) { auto plugin_init = [](SE_PlatformRegistrationParams* const params, TF_Status* const status) -> void {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 19:54:04 UTC 2024 - 26.5K bytes - Viewed (0)