first commit
This commit is contained in:
21
src/main/org/neoflock/NeoNucleus/nn_Architecture.java
Normal file
21
src/main/org/neoflock/NeoNucleus/nn_Architecture.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package org.neoflock.NeoNucleus;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
public final class nn_Architecture extends PointerBackedClass implements ManuallyAllocated {
|
||||
public final String name;
|
||||
public final Function<String, Integer> handler;
|
||||
|
||||
public nn_Architecture(String name, Function<String, Integer> handler) { // string is a placeholder; please fix
|
||||
this.name = name;
|
||||
this.handler = handler;
|
||||
|
||||
}
|
||||
|
||||
private int handleNative() { // i aint gonna be trying to call that Function from jni man
|
||||
return handler.apply("placeholder");
|
||||
}
|
||||
|
||||
public native boolean allocate();
|
||||
public native boolean free();
|
||||
}
|
||||
Reference in New Issue
Block a user