Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
9f64aa4c
Commit
9f64aa4c
authored
Apr 05, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix weird build problem
parent
10113750
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
tensorpack/utils/serialize.py
tensorpack/utils/serialize.py
+7
-6
No files found.
tensorpack/utils/serialize.py
View file @
9f64aa4c
...
@@ -9,7 +9,8 @@ import msgpack_numpy
...
@@ -9,7 +9,8 @@ import msgpack_numpy
import
struct
import
struct
import
numpy
as
np
import
numpy
as
np
from
tensorflow.core.framework.tensor_pb2
import
TensorProto
from
tensorflow.core.framework.tensor_pb2
import
TensorProto
import
tensorflow.core.framework.types_pb2
as
DataType
# import tensorflow.core.framework.types_pb2 as DataType
from
tensorflow.core.framework.types_pb2
import
*
# noqa
msgpack_numpy
.
patch
()
msgpack_numpy
.
patch
()
...
@@ -36,11 +37,11 @@ def loads(buf):
...
@@ -36,11 +37,11 @@ def loads(buf):
_DTYPE_DICT
=
{
_DTYPE_DICT
=
{
np
.
float32
:
D
ataType
.
DT_FLOAT
,
np
.
float32
:
D
T_FLOAT
,
# noqa
np
.
float64
:
D
ataType
.
DT_DOUBLE
,
np
.
float64
:
D
T_DOUBLE
,
# noqa
np
.
int32
:
D
ataType
.
DT_INT32
,
np
.
int32
:
D
T_INT32
,
# noqa
np
.
int8
:
D
ataType
.
DT_INT8
,
np
.
int8
:
D
T_INT8
,
# noqa
np
.
uint8
:
D
ataType
.
DT_UINT8
,
np
.
uint8
:
D
T_UINT8
,
# noqa
}
}
_DTYPE_DICT
=
{
np
.
dtype
(
k
):
v
for
k
,
v
in
_DTYPE_DICT
.
items
()}
_DTYPE_DICT
=
{
np
.
dtype
(
k
):
v
for
k
,
v
in
_DTYPE_DICT
.
items
()}
...
...
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