Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lozac'h Loic
otbtf
Commits
1205af52
Commit
1205af52
authored
Jul 30, 2018
by
remi cresson
Browse files
FIX: last dimension of input tensor can be 1..N
parent
c51f8e1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/otbTensorflowMultisourceModelFilter.hxx
View file @
1205af52
...
...
@@ -261,7 +261,7 @@ TensorflowMultisourceModelFilter<TInputImage, TOutputImage>
// The number of components per pixel is the last dimension of the tensor
int
dim_size
=
protoShape
.
dim_size
();
unsigned
int
nComponents
=
1
;
if
(
1
<
dim_size
&&
dim_size
<=
4
)
if
(
0
<
dim_size
&&
dim_size
<=
4
)
{
nComponents
=
protoShape
.
dim
(
dim_size
-
1
).
size
();
}
...
...
Write
Preview
Markdown
is supported
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