草庐IT

tensorflow-hub

全部标签

git - 标记 Docker Hub 版本的最佳实践是什么

我有一个运行应用程序的DockerHub容器。通常它会通过克隆源gitrepo来运行应用程序,但如果我想运行特定版本,应用程序已经标记了各种版本。例如我可以做一个gitclonehttps://github.com/author/application.gitgitcheckoutrelease-1.0.0作为DockerHub维护者,我想将软件的版本与容器一起镜像。除了在发布时手动执行之外还有其他选择吗?现在我的Dockerfile包含如下内容:ENVAPP_VER=2.0.0RUNgitclone...;gitcheckout${APP_VER}在这个例子中,我会保留一个docke

git - 标记 Docker Hub 版本的最佳实践是什么

我有一个运行应用程序的DockerHub容器。通常它会通过克隆源gitrepo来运行应用程序,但如果我想运行特定版本,应用程序已经标记了各种版本。例如我可以做一个gitclonehttps://github.com/author/application.gitgitcheckoutrelease-1.0.0作为DockerHub维护者,我想将软件的版本与容器一起镜像。除了在发布时手动执行之外还有其他选择吗?现在我的Dockerfile包含如下内容:ENVAPP_VER=2.0.0RUNgitclone...;gitcheckout${APP_VER}在这个例子中,我会保留一个docke

docker - 如何使用 TensorFlow (Windows) 为 Udacity 深度学习类(class)设置学习环境

我相信很多对学习深度学习感兴趣的人都听说过这门类(class):https://www.udacity.com/course/deep-learning--ud730我现在正在学习这门类(class),并想分享有关如何从头开始在Windows上设置学习环境的分步说明。名为设置环境的第一个答案是关于设置学习环境的。你只运行一次。名为AFTERLOCALMACHINEREBOOT的第二个答案是关于如何在重新启动计算机后重新启动环境。查看名为HOWITALLWORKS的第三个答案,了解所有这些内容的工作原理(或者您可以盲目地遵循第一个答案,稍后再查看)。 最佳答案

docker - 如何使用 TensorFlow (Windows) 为 Udacity 深度学习类(class)设置学习环境

我相信很多对学习深度学习感兴趣的人都听说过这门类(class):https://www.udacity.com/course/deep-learning--ud730我现在正在学习这门类(class),并想分享有关如何从头开始在Windows上设置学习环境的分步说明。名为设置环境的第一个答案是关于设置学习环境的。你只运行一次。名为AFTERLOCALMACHINEREBOOT的第二个答案是关于如何在重新启动计算机后重新启动环境。查看名为HOWITALLWORKS的第三个答案,了解所有这些内容的工作原理(或者您可以盲目地遵循第一个答案,稍后再查看)。 最佳答案

python - 类型错误 : 'Tensor' object does not support item assignment in TensorFlow

我尝试运行这段代码:outputs,states=rnn.rnn(lstm_cell,x,initial_state=initial_state,sequence_length=real_length)tensor_shape=outputs.get_shape()forstep_indexinrange(tensor_shape[0]):word_index=self.x[:,step_index]word_index=tf.reshape(word_index,[-1,1])index_weight=tf.gather(word_weight,word_index)outputs[

python - 类型错误 : 'Tensor' object does not support item assignment in TensorFlow

我尝试运行这段代码:outputs,states=rnn.rnn(lstm_cell,x,initial_state=initial_state,sequence_length=real_length)tensor_shape=outputs.get_shape()forstep_indexinrange(tensor_shape[0]):word_index=self.x[:,step_index]word_index=tf.reshape(word_index,[-1,1])index_weight=tf.gather(word_weight,word_index)outputs[

python - 如何在 tensorflow 中置换转置?

来自docs:Transposesa.Permutesthedimensionsaccordingtoperm.Thereturnedtensor'sdimensioniwillcorrespondtotheinputdimensionperm[i].Ifpermisnotgiven,itissetto(n-1...0),wherenistherankoftheinputtensor.Hencebydefault,thisoperationperformsaregularmatrixtransposeon2-DinputTensors.但我仍然有点不清楚我应该如何对输入张量进行切片。例

python - 如何在 tensorflow 中置换转置?

来自docs:Transposesa.Permutesthedimensionsaccordingtoperm.Thereturnedtensor'sdimensioniwillcorrespondtotheinputdimensionperm[i].Ifpermisnotgiven,itissetto(n-1...0),wherenistherankoftheinputtensor.Hencebydefault,thisoperationperformsaregularmatrixtransposeon2-DinputTensors.但我仍然有点不清楚我应该如何对输入张量进行切片。例

python - TensorFlow:libcudart.so.7.5:无法打开共享对象文件:没有这样的文件或目录

我在Ubuntu15.10上运行TensorFlow。当我输入pipshowtensorflow时,我看到TF已经正确安装了。但是,当我编写importtensorflowastf时,我收到以下错误消息:Traceback(mostrecentcalllast):File"",line1,inFile"/home/me/anaconda2/lib/python2.7/site-packages/tensorflow/__init__.py",line23,infromtensorflow.pythonimport*File"/home/me/anaconda2/lib/python2.

python - TensorFlow:libcudart.so.7.5:无法打开共享对象文件:没有这样的文件或目录

我在Ubuntu15.10上运行TensorFlow。当我输入pipshowtensorflow时,我看到TF已经正确安装了。但是,当我编写importtensorflowastf时,我收到以下错误消息:Traceback(mostrecentcalllast):File"",line1,inFile"/home/me/anaconda2/lib/python2.7/site-packages/tensorflow/__init__.py",line23,infromtensorflow.pythonimport*File"/home/me/anaconda2/lib/python2.