All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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

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

Definition at line 1656 of file

References kaldi::nnet3::ExpectToken(), ConvolutionComputationIo::num_images, ConvolutionComputationIo::num_t_in, ConvolutionComputationIo::num_t_out, kaldi::ReadBasicType(), ConvolutionComputationIo::reorder_t_in, ConvolutionComputationIo::start_t_in, ConvolutionComputationIo::start_t_out, ConvolutionComputationIo::t_step_in, and ConvolutionComputationIo::t_step_out.

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)
void Write ( std::ostream &  os,
bool  binary 
) const

Definition at line 1642 of file

References ConvolutionComputationIo::num_images, ConvolutionComputationIo::num_t_in, ConvolutionComputationIo::num_t_out, ConvolutionComputationIo::reorder_t_in, ConvolutionComputationIo::start_t_in, ConvolutionComputationIo::start_t_out, ConvolutionComputationIo::t_step_in, ConvolutionComputationIo::t_step_out, 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

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