Tflearn: BiRNN bug

Created on 16 Jul 2016  路  4Comments  路  Source: tflearn/tflearn

Hi TFlearn,

There is a small bug in BiRNN:

WARNING:tensorflow:Error encountered when serializing layer_tensor/BiRNN.
Type is unsupported, or the types of the items don't match field type in CollectionDef.
'list' object has no attribute 'name'.

Best,
Rui

bug

Most helpful comment

Hello, it's been a year has this been fixed?

All 4 comments

This issue come from the model serialization. On serialization, tensorflow try to get the name property for a list or dict value.

There are severals places where a list or dict is added as collection value :

Here tensorflow call the name property which is good for Tensor but not for list or dict. But the _get_kind_type does not make the distinction between list or dict and Tensor.

We can maybe make a workaround with tf.identity ? @aymericdamien what do you think ? It's a misuse in tflearn or an issue for tensorflow ?

Yes, the collections that have dicts (such as summaries) are deleted before being saved into the model file.
I think this is an error linked with tensorflow... before it was working well (you could save dicts without problems) but when they used protobuf, it got issues. But, I do not think TensorFlow will support dict any time soon, so we should find a way to fix that in TFLearn.

Hello, it's been a year has this been fixed?

has it been resolved ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

benbogin picture benbogin  路  5Comments

jakubLangr picture jakubLangr  路  4Comments

smithdir101 picture smithdir101  路  5Comments

aryopg picture aryopg  路  3Comments

shixiazuike picture shixiazuike  路  4Comments