neureka.NoOpData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neureka Show documentation
Show all versions of neureka Show documentation
A platform independent tensor library written in Java.
The newest version!
package neureka;
import neureka.devices.Device;
import neureka.devices.host.CPU;
import neureka.dtype.DataType;
final class NoOpData implements Data
{
static final NoOpData INSTANCE = new NoOpData();
private NoOpData() {}
@Override
public Device owner() {
return (Device) CPU.get();
}
@Override
public Object getOrNull() {
return null;
}
@Override
public DataType dataType() {
return DataType.of(Void.class);
}
@Override
public int usages() {
return 0;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy