ONE - On-device Neural Engine
Loading...
Searching...
No Matches
tfldump::CastPrinter Class Reference
Collaboration diagram for tfldump::CastPrinter:

Public Member Functions

void options (const tflite::Operator *op, std::ostream &os) const override
 

Detailed Description

Definition at line 97 of file OpPrinter.cpp.

Member Function Documentation

◆ options()

void tfldump::CastPrinter::options ( const tflite::Operator *  op,
std::ostream &  os 
) const
inlineoverridevirtual

Reimplemented from tfldump::OpPrinter.

Definition at line 100 of file OpPrinter.cpp.

101 {
102 if (auto cast_params = op->builtin_options_as_CastOptions())
103 {
104 os << " ";
105 os << "in_data_type(" << tflite::EnumNameTensorType(cast_params->in_data_type()) << ") ";
106 os << "out_data_type(" << tflite::EnumNameTensorType(cast_params->out_data_type()) << ") ";
107 os << std::endl;
108 }
109 }

The documentation for this class was generated from the following file: