Commit a149f371 authored by Pavel KORSHUNOV's avatar Pavel KORSHUNOV

Merge branch 'tensorflow' of gitlab.idiap.ch:bob/bob.pad.voice into tensorflow

parents b0e3aa49 de1a523d
Pipeline #15282 passed with stages
in 12 minutes and 45 seconds
......@@ -200,6 +200,16 @@ class TensorflowEval(Algorithm):
"""
if len(feature) > 0:
# if we have a set of independent blocks to process
# collect all projections and flatten them in one output array
if isinstance(feature, list):
projections = []
for feat in feature:
feat = numpy.cast['float32'](feat)
self._check_feature(feat)
projections.extend(self.project_feature(feat))
return numpy.asarray(projections, dtype=numpy.float32)
else:
feature = numpy.cast['float32'](feature)
self._check_feature(feature)
return self.project_feature(feature)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment