我是否有可能只用cpu训练inception-v3模型?(Is it possible that I can train inception-v3 model only with cpu?)
当我尝试使用我自己的基于Inception-v3的图像进行训练时如下:
https://github.com/tensorflow/models/blob/master/inception/inception/inception_train.py
我收到此错误:
File "/tensorflow/tensorflow/models/inception/bazel-bin/inception/flowers_train.runfiles/inception/inception_train.py", line 207, in train assert FLAGS.batch_size % FLAGS.num_gpus == 0, ( ZeroDivisionError: division by zero
我的问题是“我是否有可能只用cpu训练起始-v3模型?”
PS:我知道如果只使用cpu会比gpu花费更多时间,因此我减少了max_steps和图像数据。
非常感谢你 !
When I try to train with my own image base on Inception-v3 as follow:
https://github.com/tensorflow/models/blob/master/inception/inception/inception_train.py
I get this error:
File "/tensorflow/tensorflow/models/inception/bazel-bin/inception/flowers_train.runfiles/inception/inception_train.py", line 207, in train assert FLAGS.batch_size % FLAGS.num_gpus == 0, ( ZeroDivisionError: division by zero
My question is "Is it possible that I can train inception-v3 model only with cpu ?"
PS: I know if only use cpu which will spend much time than gpu therefore, I have decrease the max_steps and image data.
Thank you very much !
原文:https://stackoverflow.com/questions/37230843
最满意答案
不确定你的用例,但还有其他的东西。 在IIOP上使用Java RMI。 它是Java SDK的一部分,与Netbeans或您喜欢使用的任何其他IDE无关。
您可以在Oracle找到一些常规文档。
Not sure about your usecase, but there is something else. Use Java RMI over IIOP. It is part of the Java SDK and has nothing to do with Netbeans or any other IDE you prefer to use.
You can find some general documentation at Oracle.
相关问答
更多-
CORBA遗产?(Is CORBA legacy?)[2022-11-01]
仍然有一些CORBA可能是一个很好的答案: 当您构建涉及多种编程语言和多个平台的分布式系统时, 当您的系统需要发送复杂的数据结构...和SOAP不会削减它时, 当你有高速率的消息传递...和HTTP不剪切,或 当您必须与现有的CORBA客户端和/或服务进行交互时。 但是说到这里,有一些替代品可以做CORBA做的,只有更好...他们声称。 例如ZeroC的ICE EDIT @fnieto chimes说(或暗示)ICE不是免费的,但TAO是。 这是不准确和误导的 。 ICE是GPL的软件,可免费下载。 如果您 ... -
使用哪种CORBA实现?(Which CORBA implementation to use?)[2023-07-28]
你可以尝试使用C ++的MICO ,它是开源的,并且有一个很好的社区。 对于Java,我认为JacORB是最好的选择。 在我的项目中,我与JacORB ,MICO和IIOP.NET合作 。 You can try to use MICO for C++, it´s opensource and have a nice comunity. For Java, i think JacORB is the best choice. In my project, i work with JacORB, MICO a ... -
不,RMI与CORBA无关,它们两者完全不同。 但是,如果需要, 可以将RMI配置为使用CORBA IIOP有线协议,但这是传统的东西。 Sun JRE附带了一个CORBA实现,可通过org.omg包访问。 No, RMI has nothing to do with CORBA, they two are completely different. However, RMI can be configured to use the CORBA IIOP wire protocol, if required ...
-
Corba IOR解码(Corba IOR decode)[2022-05-11]
将其设置为在IOR中使用DNS名称 jacorb.dns.enable=on 另请参阅http://jacorb.org/bugzilla/show_bug.cgi?id=872 Set this to use DNS names in IORs jacorb.dns.enable=on Also , refer http://jacorb.org/bugzilla/show_bug.cgi?id=872 -
这些是CORBA存储库ID,有时也称为类型ID。 它们只是相关类型的标识符。 此页面以精彩且有用的细节描述了它们。 Those are CORBA repository IDs, sometimes also called Type IDs. They are simply identifiers for the type in question. This page describes them in great and helpful detail.
-
使用CORBA处理错误(Error handling using CORBA)[2023-02-05]
最好的方法是声明您的方法引发异常,如下所示: exception Unknown{}; interface Stock { // Returns the current stock quote. Quote get_quote() raises(Unknown); // Sets the current stock quote. void set_quote(in Quote stock_quote); // Provides the stock description, ... -
在netbeans中支持corba(Support of corba in netbeans)[2023-06-25]
不确定你的用例,但还有其他的东西。 在IIOP上使用Java RMI。 它是Java SDK的一部分,与Netbeans或您喜欢使用的任何其他IDE无关。 您可以在Oracle找到一些常规文档。 Not sure about your usecase, but there is something else. Use Java RMI over IIOP. It is part of the Java SDK and has nothing to do with Netbeans or any other ... -
CORBA是一种语言吗?(Is CORBA a language?)[2023-04-21]
后者; 您可以使用C#或Java等编程语言创建CORBA实现。 The latter; you create CORBA implementations in a programming language such as C# or Java. -
来自Ciaran McHale的免费在线书籍, CORBA Explained Simply : 操作的参数具有指定的方向,可以是(意味着参数从客户端传递到服务器), out (参数从服务器传递回客户端)或inout (参数传递)在两个方向)。 因此, in参数与“传统”函数参数非常相似,因为调用者必须为它们传递一个值,并且服务器使用该值来完成其工作。 out参数就像返回值一样,因此调用者永远不会用值填充它。 它只是在函数返回时神奇地有一个值(假设没有抛出异常),因为服务器负责在其中放置一个值作为其执行规则 ...
-
CXF Corba使用Jacorb(CXF Corba using Jacorb)[2022-10-08]
这看起来像雅各布问题。 我不相信这是一种可选方法,应该实施。 That looks like a Jacorb problem. I don't believe that is an optional method and it should be implemented.