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
ModelZoo
ResNet50_tensorflow
Commits
a46f826f
Commit
a46f826f
authored
Jan 10, 2017
by
Christopher Shallue
Browse files
Replace deprecated functions
parent
705acc35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
im2txt/im2txt/ops/image_embedding_test.py
im2txt/im2txt/ops/image_embedding_test.py
+4
-4
No files found.
im2txt/im2txt/ops/image_embedding_test.py
View file @
a46f826f
...
@@ -85,7 +85,7 @@ class InceptionV3Test(tf.test.TestCase):
...
@@ -85,7 +85,7 @@ class InceptionV3Test(tf.test.TestCase):
self
.
assertEqual
([
self
.
_batch_size
,
2048
],
embeddings
.
get_shape
().
as_list
())
self
.
assertEqual
([
self
.
_batch_size
,
2048
],
embeddings
.
get_shape
().
as_list
())
self
.
_verifyParameterCounts
()
self
.
_verifyParameterCounts
()
self
.
_assertCollectionSize
(
376
,
tf
.
GraphKeys
.
VARIABLES
)
self
.
_assertCollectionSize
(
376
,
tf
.
GraphKeys
.
GLOBAL_
VARIABLES
)
self
.
_assertCollectionSize
(
188
,
tf
.
GraphKeys
.
TRAINABLE_VARIABLES
)
self
.
_assertCollectionSize
(
188
,
tf
.
GraphKeys
.
TRAINABLE_VARIABLES
)
self
.
_assertCollectionSize
(
188
,
tf
.
GraphKeys
.
UPDATE_OPS
)
self
.
_assertCollectionSize
(
188
,
tf
.
GraphKeys
.
UPDATE_OPS
)
self
.
_assertCollectionSize
(
94
,
tf
.
GraphKeys
.
REGULARIZATION_LOSSES
)
self
.
_assertCollectionSize
(
94
,
tf
.
GraphKeys
.
REGULARIZATION_LOSSES
)
...
@@ -98,7 +98,7 @@ class InceptionV3Test(tf.test.TestCase):
...
@@ -98,7 +98,7 @@ class InceptionV3Test(tf.test.TestCase):
self
.
assertEqual
([
self
.
_batch_size
,
2048
],
embeddings
.
get_shape
().
as_list
())
self
.
assertEqual
([
self
.
_batch_size
,
2048
],
embeddings
.
get_shape
().
as_list
())
self
.
_verifyParameterCounts
()
self
.
_verifyParameterCounts
()
self
.
_assertCollectionSize
(
376
,
tf
.
GraphKeys
.
VARIABLES
)
self
.
_assertCollectionSize
(
376
,
tf
.
GraphKeys
.
GLOBAL_
VARIABLES
)
self
.
_assertCollectionSize
(
188
,
tf
.
GraphKeys
.
TRAINABLE_VARIABLES
)
self
.
_assertCollectionSize
(
188
,
tf
.
GraphKeys
.
TRAINABLE_VARIABLES
)
self
.
_assertCollectionSize
(
0
,
tf
.
GraphKeys
.
UPDATE_OPS
)
self
.
_assertCollectionSize
(
0
,
tf
.
GraphKeys
.
UPDATE_OPS
)
self
.
_assertCollectionSize
(
94
,
tf
.
GraphKeys
.
REGULARIZATION_LOSSES
)
self
.
_assertCollectionSize
(
94
,
tf
.
GraphKeys
.
REGULARIZATION_LOSSES
)
...
@@ -111,7 +111,7 @@ class InceptionV3Test(tf.test.TestCase):
...
@@ -111,7 +111,7 @@ class InceptionV3Test(tf.test.TestCase):
self
.
assertEqual
([
self
.
_batch_size
,
2048
],
embeddings
.
get_shape
().
as_list
())
self
.
assertEqual
([
self
.
_batch_size
,
2048
],
embeddings
.
get_shape
().
as_list
())
self
.
_verifyParameterCounts
()
self
.
_verifyParameterCounts
()
self
.
_assertCollectionSize
(
376
,
tf
.
GraphKeys
.
VARIABLES
)
self
.
_assertCollectionSize
(
376
,
tf
.
GraphKeys
.
GLOBAL_
VARIABLES
)
self
.
_assertCollectionSize
(
0
,
tf
.
GraphKeys
.
TRAINABLE_VARIABLES
)
self
.
_assertCollectionSize
(
0
,
tf
.
GraphKeys
.
TRAINABLE_VARIABLES
)
self
.
_assertCollectionSize
(
0
,
tf
.
GraphKeys
.
UPDATE_OPS
)
self
.
_assertCollectionSize
(
0
,
tf
.
GraphKeys
.
UPDATE_OPS
)
self
.
_assertCollectionSize
(
0
,
tf
.
GraphKeys
.
REGULARIZATION_LOSSES
)
self
.
_assertCollectionSize
(
0
,
tf
.
GraphKeys
.
REGULARIZATION_LOSSES
)
...
@@ -124,7 +124,7 @@ class InceptionV3Test(tf.test.TestCase):
...
@@ -124,7 +124,7 @@ class InceptionV3Test(tf.test.TestCase):
self
.
assertEqual
([
self
.
_batch_size
,
2048
],
embeddings
.
get_shape
().
as_list
())
self
.
assertEqual
([
self
.
_batch_size
,
2048
],
embeddings
.
get_shape
().
as_list
())
self
.
_verifyParameterCounts
()
self
.
_verifyParameterCounts
()
self
.
_assertCollectionSize
(
376
,
tf
.
GraphKeys
.
VARIABLES
)
self
.
_assertCollectionSize
(
376
,
tf
.
GraphKeys
.
GLOBAL_
VARIABLES
)
self
.
_assertCollectionSize
(
0
,
tf
.
GraphKeys
.
TRAINABLE_VARIABLES
)
self
.
_assertCollectionSize
(
0
,
tf
.
GraphKeys
.
TRAINABLE_VARIABLES
)
self
.
_assertCollectionSize
(
0
,
tf
.
GraphKeys
.
UPDATE_OPS
)
self
.
_assertCollectionSize
(
0
,
tf
.
GraphKeys
.
UPDATE_OPS
)
self
.
_assertCollectionSize
(
0
,
tf
.
GraphKeys
.
REGULARIZATION_LOSSES
)
self
.
_assertCollectionSize
(
0
,
tf
.
GraphKeys
.
REGULARIZATION_LOSSES
)
...
...
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