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
e7e59022
Commit
e7e59022
authored
May 21, 2019
by
Rob Earhart
Committed by
Scott Cyphers
May 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove parent from PlaidML tensor initializer (#2960)
parent
5f83ff57
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
8 deletions
+5
-8
plaidml_backend.cpp
src/ngraph/runtime/plaidml/plaidml_backend.cpp
+2
-3
plaidml_tensor.cpp
src/ngraph/runtime/plaidml/plaidml_tensor.cpp
+2
-3
plaidml_tensor.hpp
src/ngraph/runtime/plaidml/plaidml_tensor.hpp
+1
-2
No files found.
src/ngraph/runtime/plaidml/plaidml_backend.cpp
View file @
e7e59022
...
...
@@ -31,15 +31,14 @@ ngraph::runtime::plaidml::PlaidML_Backend::PlaidML_Backend(const char* configura
std
::
shared_ptr
<
ngraph
::
runtime
::
Tensor
>
ngraph
::
runtime
::
plaidml
::
PlaidML_Backend
::
create_tensor
(
const
ngraph
::
element
::
Type
&
element_type
,
const
ngraph
::
Shape
&
shape
)
{
return
std
::
make_shared
<
PlaidML_Tensor
>
(
this
,
&
m_config
,
element_type
,
shape
,
"direct_data"
,
nullptr
);
return
std
::
make_shared
<
PlaidML_Tensor
>
(
&
m_config
,
element_type
,
shape
,
"direct_data"
,
nullptr
);
}
std
::
shared_ptr
<
ngraph
::
runtime
::
Tensor
>
ngraph
::
runtime
::
plaidml
::
PlaidML_Backend
::
create_tensor
(
const
ngraph
::
element
::
Type
&
element_type
,
const
Shape
&
shape
,
void
*
memory_pointer
)
{
return
std
::
make_shared
<
PlaidML_Tensor
>
(
this
,
&
m_config
,
element_type
,
shape
,
"direct_data"
,
memory_pointer
);
&
m_config
,
element_type
,
shape
,
"direct_data"
,
memory_pointer
);
}
std
::
shared_ptr
<
ngraph
::
runtime
::
Executable
>
...
...
src/ngraph/runtime/plaidml/plaidml_tensor.cpp
View file @
e7e59022
...
...
@@ -22,13 +22,12 @@
namespace
vp
=
vertexai
::
plaidml
;
ngraph
::
runtime
::
plaidml
::
PlaidML_Tensor
::
PlaidML_Tensor
(
Backend
*
parent
,
Config
*
config
,
ngraph
::
runtime
::
plaidml
::
PlaidML_Tensor
::
PlaidML_Tensor
(
Config
*
config
,
const
ngraph
::
element
::
Type
&
element_type
,
const
ngraph
::
Shape
&
shape
,
const
std
::
string
&
name
,
void
*
memory
)
:
Tensor
{
std
::
make_shared
<
ngraph
::
descriptor
::
Tensor
>
(
element_type
,
shape
,
name
)
,
parent
}
:
Tensor
{
std
::
make_shared
<
ngraph
::
descriptor
::
Tensor
>
(
element_type
,
shape
,
name
)}
,
m_tensor
{
config
->
dev
->
allocate
(
to_plaidml
(
config
->
ctx
,
element_type
,
shape
,
ConversionUse
::
FOR_IO
))}
,
m_memory
{
memory
}
...
...
src/ngraph/runtime/plaidml/plaidml_tensor.hpp
View file @
e7e59022
...
...
@@ -35,8 +35,7 @@ namespace ngraph
class
ngraph
::
runtime
::
plaidml
::
PlaidML_Tensor
final
:
public
ngraph
::
runtime
::
Tensor
{
public
:
PlaidML_Tensor
(
Backend
*
parent
,
Config
*
config
,
PlaidML_Tensor
(
Config
*
config
,
const
ngraph
::
element
::
Type
&
element_type
,
const
ngraph
::
Shape
&
shape
,
const
std
::
string
&
name
,
...
...
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