MCPcopy Create free account
hub / github.com/BVLC/caffe / arraylist_to_blobprotovector_str

Function arraylist_to_blobprotovector_str

python/caffe/io.py:49–55  ·  view source on GitHub ↗

Converts a list of arrays to a serialized blobprotovec, which could be then passed to a network for processing.

(arraylist)

Source from the content-addressed store, hash-verified

47
48
49def 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
58def blobprotovector_str_to_arraylist(str):

Callers

nothing calls this directly

Calls 1

array_to_blobprotoFunction · 0.85

Tested by

no test coverage detected