TensorFlow

API

 tf.nest / assert_same_structure


Returns true if its input is a collections.abc.Sequence (except strings).

seq an input sequence.

True if the sequence is a not a string and is a collections.abc.Sequence or a dict.

此页内容是否对您有帮助