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
6a72aec2
Commit
6a72aec2
authored
May 29, 2018
by
Mark Daoust
Browse files
Created using Colaboratory
parent
a17440f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
samples/core/get_started/eager.ipynb
samples/core/get_started/eager.ipynb
+2
-3
No files found.
samples/core/get_started/eager.ipynb
View file @
6a72aec2
...
@@ -411,8 +411,7 @@
...
@@ -411,8 +411,7 @@
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
"def pack_features_vector(features,labels):\n",
"def pack_features_vector(features,labels):\n",
" values = [value for value in features.values()]\n",
" features = tf.stack(list(features.values()), axis=1)\n",
" features = tf.stack(values, axis=1)\n",
" return features, labels\n",
" return features, labels\n",
" \n",
" \n",
"train_dataset = train_dataset.map(pack_features_vector)"
"train_dataset = train_dataset.map(pack_features_vector)"
...
@@ -1071,4 +1070,4 @@
...
@@ -1071,4 +1070,4 @@
]
]
}
}
]
]
}
}
\ No newline at end of file
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