Internal change

PiperOrigin-RevId: 533327411
This commit is contained in:
MediaPipe Team
2023-05-18 20:19:42 -07:00
committed by Copybara-Service
parent c248525eeb
commit 937a6b1422
4 changed files with 11 additions and 5 deletions
+2 -1
View File
@@ -14,6 +14,7 @@
#include "mediapipe/gpu/gpu_shared_data_internal.h"
#include "absl/base/attributes.h"
#include "mediapipe/framework/deps/no_destructor.h"
#include "mediapipe/framework/port/ret_check.h"
#include "mediapipe/gpu/gl_context.h"
@@ -116,7 +117,7 @@ GpuResources::~GpuResources() {
#endif // __APPLE__
}
extern const GraphService<GpuResources> kGpuService;
ABSL_CONST_INIT extern const GraphService<GpuResources> kGpuService;
absl::Status GpuResources::PrepareGpuNode(CalculatorNode* node) {
CHECK(node->Contract().ServiceRequests().contains(kGpuService.key));