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

Method CastOpModel

tensorflow/lite/kernels/cast_test.cc:30–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28class CastOpModel : public SingleOpModel {
29 public:
30 CastOpModel(const TensorData& input, const TensorData& output) {
31 input_ = AddInput(input);
32 output_ = AddOutput(output);
33 SetBuiltinOp(BuiltinOperator_CAST, BuiltinOptions_CastOptions,
34 CreateCastOptions(builder_).Union());
35 BuildInterpreter({GetShape(input_)});
36 }
37
38 int input() const { return input_; }
39 int output() const { return output_; }

Callers

nothing calls this directly

Calls 5

AddOutputFunction · 0.85
CreateCastOptionsFunction · 0.85
AddInputFunction · 0.50
GetShapeFunction · 0.50
UnionMethod · 0.45

Tested by

no test coverage detected