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

Public Member Functions

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

Detailed Description

Definition at line 198 of file OpPrinter.cpp.

Member Function Documentation

◆ options()

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

Reimplemented from tfldump::OpPrinter.

Definition at line 201 of file OpPrinter.cpp.

202 {
203 if (auto *reshape_params = op->builtin_options_as_ReshapeOptions())
204 {
205 auto new_shape = tflread::as_index_vector(reshape_params->new_shape());
206 os << " ";
207 os << "NewShape(" << new_shape << ")";
208 os << std::endl;
209 }
210 }
std::vector< T > as_index_vector(const flatbuffers::Vector< T > *flat_array)
Definition Read.h:29

References tflread::as_index_vector().


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