Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
497e5d39
Commit
497e5d39
authored
Aug 27, 2018
by
Artur Wojcik
Committed by
Michał Karzyński
Aug 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ONNX] Fix compilation of ONNX library (#1494)
parent
b11b9c69
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
external_onnx.cmake
cmake/external_onnx.cmake
+3
-0
gemm.cpp
src/ngraph/frontend/onnx_import/op/gemm.cpp
+6
-6
No files found.
cmake/external_onnx.cmake
View file @
497e5d39
...
...
@@ -43,6 +43,7 @@ if (${CMAKE_VERSION} VERSION_LESS 3.2)
-DProtobuf_PROTOC_EXECUTABLE=
${
Protobuf_PROTOC_EXECUTABLE
}
-DProtobuf_INCLUDE_DIR=
${
Protobuf_INCLUDE_DIR
}
-DPROTOBUF_LIBRARY=
${
Protobuf_LIBRARY
}
-DPROTOBUF_INCLUDE_DIR=
${
Protobuf_INCLUDE_DIR
}
-DPROTOBUF_SRC_ROOT_FOLDER=
${
Protobuf_SRC_ROOT_FOLDER
}
TMP_DIR
"
${
EXTERNAL_PROJECTS_ROOT
}
/onnx/tmp"
STAMP_DIR
"
${
EXTERNAL_PROJECTS_ROOT
}
/onnx/stamp"
...
...
@@ -65,6 +66,7 @@ else()
-DProtobuf_PROTOC_EXECUTABLE=
${
Protobuf_PROTOC_EXECUTABLE
}
-DProtobuf_INCLUDE_DIR=
${
Protobuf_INCLUDE_DIR
}
-DPROTOBUF_LIBRARY=
${
Protobuf_LIBRARY
}
-DPROTOBUF_INCLUDE_DIR=
${
Protobuf_INCLUDE_DIR
}
-DPROTOBUF_SRC_ROOT_FOLDER=
${
Protobuf_SRC_ROOT_FOLDER
}
TMP_DIR
"
${
EXTERNAL_PROJECTS_ROOT
}
/onnx/tmp"
STAMP_DIR
"
${
EXTERNAL_PROJECTS_ROOT
}
/onnx/stamp"
...
...
@@ -88,6 +90,7 @@ else()
UPDATE_COMMAND
""
CMAKE_ARGS -DONNX_GEN_PB_TYPE_STUBS=OFF
-DProtobuf_PROTOC_EXECUTABLE=
${
Protobuf_PROTOC_EXECUTABLE
}
-DProtobuf_LIBRARY=
${
Protobuf_LIBRARY
}
-DProtobuf_INCLUDE_DIR=
${
Protobuf_INCLUDE_DIR
}
TMP_DIR
"
${
EXTERNAL_PROJECTS_ROOT
}
/onnx/tmp"
STAMP_DIR
"
${
EXTERNAL_PROJECTS_ROOT
}
/onnx/stamp"
...
...
src/ngraph/frontend/onnx_import/op/gemm.cpp
View file @
497e5d39
...
...
@@ -39,17 +39,17 @@ namespace ngraph
auto
input_b
=
inputs
.
at
(
1
);
auto
input_c
=
inputs
.
at
(
2
);
double
alpha
{
node
.
get_attribute_value
<
double
>
(
"alpha"
,
1
)}
;
double
beta
{
node
.
get_attribute_value
<
double
>
(
"beta"
,
1
)}
;
double
alpha
=
node
.
get_attribute_value
<
double
>
(
"alpha"
,
1
)
;
double
beta
=
node
.
get_attribute_value
<
double
>
(
"beta"
,
1
)
;
auto
trans_a
{
node
.
get_attribute_value
<
int64_t
>
(
"transA"
,
0
)}
;
auto
trans_b
{
node
.
get_attribute_value
<
int64_t
>
(
"transB"
,
0
)}
;
auto
trans_a
=
node
.
get_attribute_value
<
int64_t
>
(
"transA"
,
0
)
;
auto
trans_b
=
node
.
get_attribute_value
<
int64_t
>
(
"transB"
,
0
)
;
if
(
trans_a
)
if
(
trans_a
!=
0
)
{
input_a
=
transpose
(
input_a
);
}
if
(
trans_b
)
if
(
trans_b
!=
0
)
{
input_b
=
transpose
(
input_b
);
}
...
...
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