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

Method SetAllowFp16PrecisionForFp32

tensorflow/lite/interpreter.cc:254–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254void Interpreter::SetAllowFp16PrecisionForFp32(bool allow) {
255 for (auto& subgraph : subgraphs_) {
256 subgraph->context()->allow_fp32_relax_to_fp16 = allow;
257 }
258}
259
260// TODO(b/121264966): Subgraphs added after cancellation is set will not get the
261// cancellation function added to their context.

Calls 1

contextMethod · 0.45

Tested by 1

BuildInterpreterMethod · 0.64