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

Function ExpectValue

tensorflow/lite/toco/import_tensorflow.cc:170–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168
169template <typename T1, typename T2>
170tensorflow::Status ExpectValue(const T1& v1, const T2& v2,
171 const string& description) {
172 if (v1 == v2) return tensorflow::Status::OK();
173 return tensorflow::errors::InvalidArgument(absl::StrCat(
174 "Unexpected ", description, ": got ", v1, ", expected ", v2));
175}
176
177ArrayDataType ConvertDataType(tensorflow::DataType dtype) {
178 if (dtype == DT_UINT8)

Callers 2

ConvertConvOperatorFunction · 0.85

Calls 2

InvalidArgumentFunction · 0.85
StrCatFunction · 0.50

Tested by

no test coverage detected