Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SeetaResearch
/
Dragon
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 53d5742d
authored
Aug 09, 2017
by
Ting PAN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add DragonBoard
1 parent
93943fc8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
.gitmodules
Dragon/modules/python/dragon.cc
Dragon/src/operators/update/moving_average.cc → Dragon/src/operators/update/moving_average_op.cc
DragonBoard
.gitmodules
0 → 100644
View file @
53d5742
[submodule "DragonBoard"]
path = DragonBoard
url = git://github.com/neopenx/DragonBoard.git
Dragon/modules/python/dragon.cc
View file @
53d5742
...
@@ -168,8 +168,8 @@ PyObject* ResetWorkspaceCC(PyObject* self, PyObject* args) {
...
@@ -168,8 +168,8 @@ PyObject* ResetWorkspaceCC(PyObject* self, PyObject* args) {
return
nullptr
;
return
nullptr
;
}
}
LOG
(
INFO
)
<<
"Reset the Workspace("
<<
g_current_workspace
<<
")"
;
LOG
(
INFO
)
<<
"Reset the Workspace("
<<
g_current_workspace
<<
")"
;
string
workspace_name
=
string
(
cname
);
string
workspace_name
=
string
(
cname
);
if
(
workspace_name
.
empty
())
g_workspaces
[
g_current_workspace
].
reset
(
new
Workspace
());
if
(
workspace_name
.
empty
())
g_workspaces
[
g_current_workspace
].
reset
(
new
Workspace
());
else
g_workspaces
[
g_current_workspace
].
reset
(
new
Workspace
(
workspace_name
));
else
g_workspaces
[
g_current_workspace
].
reset
(
new
Workspace
(
workspace_name
));
g_workspace
=
g_workspaces
[
g_current_workspace
].
get
();
g_workspace
=
g_workspaces
[
g_current_workspace
].
get
();
Py_RETURN_TRUE
;
Py_RETURN_TRUE
;
...
@@ -281,7 +281,7 @@ PyObject* FetchTensorCC(PyObject* self, PyObject* args) {
...
@@ -281,7 +281,7 @@ PyObject* FetchTensorCC(PyObject* self, PyObject* args) {
TypeId
type_id
=
CTypeToFetcher
(
tensor
->
meta
().
id
());
TypeId
type_id
=
CTypeToFetcher
(
tensor
->
meta
().
id
());
CHECK
(
type_id
!=
0
)
<<
"
\n
Tensor("
<<
tensor
->
name
()
CHECK
(
type_id
!=
0
)
<<
"
\n
Tensor("
<<
tensor
->
name
()
<<
") has not been computed yet."
;
<<
") has not been computed yet."
;
unique_ptr
<
TensorFetcherBase
>
fetcher
(
c
reateFetcher
(
type_id
));
unique_ptr
<
TensorFetcherBase
>
fetcher
(
C
reateFetcher
(
type_id
));
if
(
fetcher
.
get
())
{
if
(
fetcher
.
get
())
{
return
fetcher
->
Fetch
(
*
tensor
);
// copy the tensor data to a numpy object
return
fetcher
->
Fetch
(
*
tensor
);
// copy the tensor data to a numpy object
}
else
{
}
else
{
...
...
Dragon/src/operators/update/moving_average.cc
→
Dragon/src/operators/update/moving_average
_op
.cc
View file @
53d5742
File moved
DragonBoard
@
c4e649f6
Subproject commit c4e649f66e59b39d07a1a857c72e721ebbdb93ae
Write
Preview
Markdown
is supported
Attach a file
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 post a comment