[DEV] update classpath
This commit is contained in:
parent
3026ce58be
commit
aab1632869
12
.classpath
12
.classpath
@ -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>
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user