Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Hertz-Lab
Research
Intelligent Museum
ofxTensorFlow2
Commits
057e3d9c
Commit
057e3d9c
authored
Feb 21, 2022
by
pbethge
Browse files
fix runMultiModel
parent
44de48e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES.txt
View file @
057e3d9c
1.2.2: 2022 Feb 21
* update cppflow
* add support for frozen graphs
* add basic frozen graph example
* fix ofxTF2::Model::runMultiModel() more less inputs than initially named
1.2.1: 2022 Feb 16
* fixed incorrect changelog version
...
...
src/ofxTF2Model.cpp
View file @
057e3d9c
...
...
@@ -94,8 +94,14 @@ Model::runMultiModel(const std::vector<cppflow::tensor> & inputs) const {
using
inputTuple_t
=
std
::
tuple
<
std
::
string
,
cppflow
::
tensor
>
;
std
::
vector
<
inputTuple_t
>
inputArguments
;
if
(
inputs
.
size
()
>
inputNames_
.
size
())
{
ofLogError
(
"ofxTensorFlow2"
)
<<
"Model: number of inputs greater than "
<<
"number of input names"
;
return
std
::
vector
<
cppflow
::
tensor
>
(
-
1
);
}
// add the names from settings and tensors to the vector of arguments
for
(
unsigned
int
i
=
0
;
i
<
input
Names_
.
size
();
i
++
)
{
for
(
unsigned
int
i
=
0
;
i
<
input
s
.
size
();
i
++
)
{
inputArguments
.
push_back
(
inputTuple_t
(
inputNames_
[
i
],
inputs
[
i
]));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment