Skip to content

nnet3-info occurs a segment fault. #2875

@hwiorn

Description

@hwiorn

Using kaldi latest (70aba21), I get the following error when running nnet3-info. (It happens during steps/nnet3/xconfig_to_configs.py)

$ nnet3-info exp/chain_rvb/tdnn1n_rvb/configs//ref.raw Segmentation fault (core dumped) 

src/nnet3/nnet-parse.cc:522 <- Infinite recursion occurs at this location.

The error is a side effect caused by #2496 and is associated with a commit of c362b2c.
The following changes are required.

diff --git a/src/nnet3/nnet-parse.cc b/src/nnet3/nnet-parse.cc index c920790..a51bba2 100644 --- a/src/nnet3/nnet-parse.cc +++ b/src/nnet3/nnet-parse.cc @@ -518,12 +518,12 @@ std::string SummarizeVector(const VectorBase<float> &vec) { } std::string SummarizeVector(const VectorBase<double> &vec) { - Vector<BaseFloat> vec_copy(vec); + Vector<float> vec_copy(vec); return SummarizeVector(vec_copy); } std::string SummarizeVector(const CuVectorBase<BaseFloat> &cu_vec) { - Vector<BaseFloat> vec(cu_vec); + Vector<float> vec(cu_vec); return SummarizeVector(vec); } 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions