"docs/en/vscode:/vscode.git/clone" did not exist on "625e82ce624a62e5f4bab22897c7565bbcfb9547"
Commit 6a72aec2 authored by Mark Daoust's avatar Mark Daoust
Browse files

Created using Colaboratory

parent a17440f7
......@@ -411,8 +411,7 @@
"cell_type": "code",
"source": [
"def pack_features_vector(features,labels):\n",
" values = [value for value in features.values()]\n",
" features = tf.stack(values, axis=1)\n",
" features = tf.stack(list(features.values()), axis=1)\n",
" return features, labels\n",
" \n",
"train_dataset = train_dataset.map(pack_features_vector)"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment