Converts a list of arrays to a serialized blobprotovec, which could be then passed to a network for processing.
(arraylist)
| 47 | |
| 48 | |
| 49 | def arraylist_to_blobprotovector_str(arraylist): |
| 50 | """Converts a list of arrays to a serialized blobprotovec, which could be |
| 51 | then passed to a network for processing. |
| 52 | """ |
| 53 | vec = caffe_pb2.BlobProtoVector() |
| 54 | vec.blobs.extend([array_to_blobproto(arr) for arr in arraylist]) |
| 55 | return vec.SerializeToString() |
| 56 | |
| 57 | |
| 58 | def blobprotovector_str_to_arraylist(str): |
nothing calls this directly
no test coverage detected