如何处理'总线错误'在培训期间的咖啡?

时间:2016-09-23 12:18:53

标签: caffe sigbus

我正在使用NVIDIA Jetson TX1和caffe在我自己的数据上训练AlexNet。 我有104,000列火车和20,000个验证图像输入我的模型。测试和火车的批量大小为16。

我运行求解器进行训练,并在1300次迭代后得到interface C { public Date getA(); public void setA(Date a); } interface C_Factory <X extends C> { X createInstance(); } class C1 implements C { Date a; int b; public C1() { super(); } public Date getA() { return a; } public void setA(Date a) { this.a = a; } public int getB() { return b; } public void setB(int b) { this.b = b; } } class C2 implements C { Date a; float b; public C2() { super(); } public Date getA() { return a; } public void setA(Date a) { this.a = a; } public float getB() { return b; } public void setB(float b) { this.b = b; } } public class CommonFunc { // You need this extra param to create instances---- // V static <X extends C> X doSomething(Date d, Class<X> clazz) throws InstantiationException, IllegalAccessException // You'll have to accept those exceptions as well { // the next statement uses clazz as a factory for new X instances // As such, you can abstract the method further and use // a custom Factory class instead. X toret=clazz.newInstance(); toret.setA(d); // something else return toret; } // A custom factory variant of the above static <X extends C> X doSomething(Date d, C_Factory<X> factory) { X toret=factory.createInstance(); toret.setA(d); // something else return toret; } static public void main(String[] args) { try { C1 c1=doSomething(new Date(), C1.class); C2 c2=doSomething(new Date(), C2.class); } catch (InstantiationException | IllegalAccessException e) { // Should not happen e.printStackTrace(); } } }

Bus error

我使用的是ubuntu 14,NVIDIA TegraX1,内存3.8 GB。 据我所知,这是一个记忆问题。能否请您更好地解释一下并帮助我如何解决这个问题? 如果需要任何其他信息,请告诉我。

0 个答案:

没有答案
相关问题