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

Method SetParameter

tensorflow/lite/delegates/gpu/gl/gl_program.cc:204–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202GlProgram::~GlProgram() { Invalidate(); }
203
204Status GlProgram::SetParameter(const Variable& param) {
205 GLint uniform_location;
206 RETURN_IF_ERROR(TFLITE_GPU_CALL_GL(glGetUniformLocation, &uniform_location,
207 id_, param.name.c_str()));
208 return absl::visit(ParameterSetter{id_, uniform_location}, param.value);
209}
210
211Status GlProgram::Dispatch(const uint3& workgroups) const {
212 if (workgroups.x == 0 || workgroups.y == 0 || workgroups.z == 0) {

Callers 3

AddProgramMethod · 0.80
ConvertMethod · 0.80
ConvertMethod · 0.80

Calls 2

c_strMethod · 0.80
visitFunction · 0.50

Tested by

no test coverage detected