ConvolutionComputationIo Struct Reference

#include <convolution.h>

Collaboration diagram for ConvolutionComputationIo:

Public Member Functions

void Write (std::ostream &os, bool binary) const
void Read (std::istream &is, bool binary)

Public Attributes

int32 num_images
int32 start_t_in
int32 t_step_in
int32 num_t_in
int32 start_t_out
int32 t_step_out
int32 num_t_out
int32 reorder_t_in

Detailed Description

Definition at line 380 of file convolution.h.

Member Function Documentation

◆ Read()

void Read ( std::istream &  is,
bool  binary 

Definition at line 1656 of file

References kaldi::nnet3::ExpectToken(), and kaldi::ReadBasicType().

1656  {
1657  ExpectToken(is, binary, "<ConvCompIo>");
1658  ReadBasicType(is, binary, &num_images);
1659  ReadBasicType(is, binary, &start_t_in);
1660  ReadBasicType(is, binary, &t_step_in);
1661  ReadBasicType(is, binary, &num_t_in);
1662  ReadBasicType(is, binary, &start_t_out);
1663  ReadBasicType(is, binary, &t_step_out);
1664  ReadBasicType(is, binary, &num_t_out);
1665  ReadBasicType(is, binary, &reorder_t_in);
1666  ExpectToken(is, binary, "</ConvCompIo>");
1667 }
void ReadBasicType(std::istream &is, bool binary, T *t)
ReadBasicType is the name of the read function for bool, integer types, and floating-point types...
Definition: io-funcs-inl.h:55
static void ExpectToken(const std::string &token, const std::string &what_we_are_parsing, const std::string **next_token)

◆ Write()

void Write ( std::ostream &  os,
bool  binary 
) const

Definition at line 1642 of file

References kaldi::WriteBasicType(), and kaldi::WriteToken().

1642  {
1643  WriteToken(os, binary, "<ConvCompIo>");
1644  WriteBasicType(os, binary, num_images);
1645  WriteBasicType(os, binary, start_t_in);
1646  WriteBasicType(os, binary, t_step_in);
1647  WriteBasicType(os, binary, num_t_in);
1648  WriteBasicType(os, binary, start_t_out);
1649  WriteBasicType(os, binary, t_step_out);
1650  WriteBasicType(os, binary, num_t_out);
1651  WriteBasicType(os, binary, reorder_t_in);
1652  WriteToken(os, binary, "</ConvCompIo>");
1653 }
void WriteToken(std::ostream &os, bool binary, const char *token)
The WriteToken functions are for writing nonempty sequences of non-space characters.
void WriteBasicType(std::ostream &os, bool binary, T t)
WriteBasicType is the name of the write function for bool, integer types, and floating-point types...
Definition: io-funcs-inl.h:34

Member Data Documentation

◆ num_images

◆ num_t_in

◆ num_t_out

◆ reorder_t_in

◆ start_t_in

◆ start_t_out

◆ t_step_in

◆ t_step_out

The documentation for this struct was generated from the following files: