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

Method ReadOptions

tensorflow/lite/toco/tflite/operator.cc:57–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56
57 void ReadOptions(const TfLiteOptions& options,
58 TocoOperator* op) const override {
59 op->padding.type = Padding::Deserialize(options.padding());
60 op->stride_width = options.stride_w();
61 op->stride_height = options.stride_h();
62 op->kwidth = options.filter_width();
63 op->kheight = options.filter_height();
64 op->fused_activation_function =
65 ActivationFunction::Deserialize(options.fused_activation_function());
66 }
67
68 int GetVersion(const OperatorSignature& op_signature) const override {
69 const string& input_name = op_signature.op->inputs[0];

Callers

nothing calls this directly

Calls 1

paddingMethod · 0.45

Tested by

no test coverage detected