[DEV] update classpath

This commit is contained in:
Edouard DUPIN 2021-08-23 11:14:04 +02:00
parent 3026ce58be
commit aab1632869
2 changed files with 9 additions and 11 deletions

View File

@ -18,12 +18,7 @@
<attribute name="test" value="true"/> <attribute name="test" value="true"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry combineaccessrules="false" kind="src" path="/atriasoft-etk"> <classpathentry combineaccessrules="false" kind="src" path="/atriasoft-png-encoder">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry combineaccessrules="false" kind="src" path="/scenarium-logger">
<attributes> <attributes>
<attribute name="module" value="true"/> <attribute name="module" value="true"/>
</attributes> </attributes>
@ -38,10 +33,5 @@
<attribute name="module" value="true"/> <attribute name="module" value="true"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry combineaccessrules="false" kind="src" path="/atriasoft-png-encoder">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="out/eclipse/classes"/> <classpathentry kind="output" path="out/eclipse/classes"/>
</classpath> </classpath>

View File

@ -183,6 +183,14 @@ public class Weight {
// ----------------------------------------------- // -----------------------------------------------
public void resize(final Vector2i size) { public void resize(final Vector2i size) {
this.size = size; this.size = size;
if (this.size.x() <= 0) {
Log.error("Error in the Weight size : " + this.size);
this.size = this.size.withX(1);
}
if (this.size.y() <= 0) {
Log.error("Error in the Weight size : " + this.size);
this.size = this.size.withY(1);
}
this.data = new float[this.size.y()][this.size.x()]; this.data = new float[this.size.y()][this.size.x()];
clear(0); clear(0);
} }