Parses a vector of `SequenceExample` protos. Args: serialized: A vector (1-D Tensor) of type string, containing binary serialized `SequenceExample` protos. debug_name: A vector (1-D Tensor) of strings (optional), the names of the serialized protos. context_sparse_keys: A l
(serialized,
debug_name=None,
context_sparse_keys=None,
context_sparse_types=None,
context_dense_keys=None,
context_dense_types=None,
context_dense_defaults=None,
context_dense_shapes=None,
feature_list_sparse_keys=None,
feature_list_sparse_types=None,
feature_list_dense_keys=None,
feature_list_dense_types=None,
feature_list_dense_shapes=None,
feature_list_dense_defaults=None,
name=None)
| 1271 | |
| 1272 | |
| 1273 | def _parse_sequence_example_raw(serialized, |
| 1274 | debug_name=None, |
| 1275 | context_sparse_keys=None, |
| 1276 | context_sparse_types=None, |
| 1277 | context_dense_keys=None, |
| 1278 | context_dense_types=None, |
| 1279 | context_dense_defaults=None, |
| 1280 | context_dense_shapes=None, |
| 1281 | feature_list_sparse_keys=None, |
| 1282 | feature_list_sparse_types=None, |
| 1283 | feature_list_dense_keys=None, |
| 1284 | feature_list_dense_types=None, |
| 1285 | feature_list_dense_shapes=None, |
| 1286 | feature_list_dense_defaults=None, |
| 1287 | name=None): |
| 1288 | """Parses a vector of `SequenceExample` protos. |
| 1289 | |
| 1290 | Args: |
| 1291 | serialized: A vector (1-D Tensor) of type string, containing binary |
| 1292 | serialized `SequenceExample` protos. |
| 1293 | debug_name: A vector (1-D Tensor) of strings (optional), the names of the |
| 1294 | serialized protos. |
| 1295 | context_sparse_keys: A list of string keys in the `SequenceExample`'s |
| 1296 | features. The results for these keys will be returned as `SparseTensor` |
| 1297 | objects. |
| 1298 | context_sparse_types: A list of `DTypes`, the same length as `sparse_keys`. |
| 1299 | Only `tf.float32` (`FloatList`), `tf.int64` (`Int64List`), and `tf.string` |
| 1300 | (`BytesList`) are supported. |
| 1301 | context_dense_keys: A list of string keys in the examples' features. The |
| 1302 | results for these keys will be returned as `Tensor`s |
| 1303 | context_dense_types: A list of DTypes, same length as `context_dense_keys`. |
| 1304 | Only `tf.float32` (`FloatList`), `tf.int64` (`Int64List`), and `tf.string` |
| 1305 | (`BytesList`) are supported. |
| 1306 | context_dense_defaults: A dict mapping string keys to `Tensor`s. The keys of |
| 1307 | the dict must match the context_dense_keys of the feature. |
| 1308 | context_dense_shapes: A list of tuples, same length as `context_dense_keys`. |
| 1309 | The shape of the data for each context_dense feature referenced by |
| 1310 | `context_dense_keys`. Required for any input tensors identified by |
| 1311 | `context_dense_keys` whose shapes are anything other than `[]` or `[1]`. |
| 1312 | feature_list_sparse_keys: A list of string keys in the `SequenceExample`'s |
| 1313 | feature_lists. The results for these keys will be returned as |
| 1314 | `SparseTensor` objects. |
| 1315 | feature_list_sparse_types: A list of `DTypes`, same length as `sparse_keys`. |
| 1316 | Only `tf.float32` (`FloatList`), `tf.int64` (`Int64List`), and `tf.string` |
| 1317 | (`BytesList`) are supported. |
| 1318 | feature_list_dense_keys: A list of string keys in the `SequenceExample`'s |
| 1319 | features_lists. The results for these keys will be returned as `Tensor`s. |
| 1320 | feature_list_dense_types: A list of `DTypes`, same length as |
| 1321 | `feature_list_dense_keys`. Only `tf.float32` (`FloatList`), `tf.int64` |
| 1322 | (`Int64List`), and `tf.string` (`BytesList`) are supported. |
| 1323 | feature_list_dense_shapes: A list of tuples, same length as |
| 1324 | `feature_list_dense_keys`. The shape of the data for each `FeatureList` |
| 1325 | feature referenced by `feature_list_dense_keys`. |
| 1326 | feature_list_dense_defaults: A dict mapping key strings to values. The only |
| 1327 | currently allowed value is `None`. Any key appearing in this dict with |
| 1328 | value `None` is allowed to be missing from the `SequenceExample`. If |
| 1329 | missing, the key is treated as zero-length. |
| 1330 | name: A name for this operation (optional). |
no test coverage detected