MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ExceedsMaxSize

Function ExceedsMaxSize

tensorflow/lite/delegates/gpu/gl/compiler.cc:60–64  ·  view source on GitHub ↗

Returns true if any size variable exceeds the given limit

Source from the content-addressed store, hash-verified

58
59// Returns true if any size variable exceeds the given limit
60bool ExceedsMaxSize(const Object& object, const GpuInfo& gpu_info) {
61 return absl::visit(ExceedSizeChecker{gpu_info.max_texture_size,
62 gpu_info.max_array_texture_layers},
63 object.size);
64}
65
66ObjectType ChooseFastestObjectType(const GpuInfo& gpu_info) {
67 return gpu_info.type == GpuType::ADRENO ? ObjectType::TEXTURE

Callers 1

CompileMethod · 0.85

Calls 1

visitFunction · 0.50

Tested by

no test coverage detected