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

Method UploadParameters

tensorflow/lite/delegates/gpu/cl/kernels/prelu.h:70–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68
69template <DataType T>
70Status PReLU::UploadParameters(
71 const ::tflite::gpu::Tensor<Linear, T>& parameters, CLContext* context) {
72 LinearStorageCreateInfo create_info;
73 create_info.storage_type =
74 DeduceLinearStorageType(definition_.GetPrimaryStorageType());
75 create_info.data_type = definition_.GetPrimaryDataType();
76 RETURN_IF_ERROR(
77 CreateLinearStorage(create_info, parameters, context, &alpha_));
78 return OkStatus();
79}
80
81} // namespace cl
82} // namespace gpu

Callers 1

CreatePReLUFunction · 0.80

Calls 5

DeduceLinearStorageTypeFunction · 0.85
OkStatusFunction · 0.85
GetPrimaryStorageTypeMethod · 0.80
GetPrimaryDataTypeMethod · 0.80
CreateLinearStorageFunction · 0.50

Tested by

no test coverage detected