parent
aefdbc17d6
commit
2447af0953
|
@ -261,7 +261,7 @@ namespace nd4j {
|
||||||
void syncToDevice() const;
|
void syncToDevice() const;
|
||||||
void syncShape() const;
|
void syncShape() const;
|
||||||
|
|
||||||
#ifndef __JAVACPP_HACK__ && !defined(_JNI_IMPLEMENTATION_)
|
#if !defined(__JAVACPP_HACK__) && !defined(_JNI_IMPLEMENTATION_)
|
||||||
/**
|
/**
|
||||||
* This method can be used on architectures that use special buffers
|
* This method can be used on architectures that use special buffers
|
||||||
* @param writeList
|
* @param writeList
|
||||||
|
|
|
@ -182,7 +182,7 @@ void NDArray::synchronize(const char* msg) const {
|
||||||
// no-op
|
// no-op
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef __JAVACPP_HACK__ && !defined(_JNI_IMPLEMENTATION_)
|
#if !defined(__JAVACPP_HACK__) && !defined(_JNI_IMPLEMENTATION_)
|
||||||
void NDArray::prepareSpecialUse(const std::vector<const NDArray*>& writeList, const std::vector<const NDArray*>& readList, bool synchronizeWritables) {
|
void NDArray::prepareSpecialUse(const std::vector<const NDArray*>& writeList, const std::vector<const NDArray*>& readList, bool synchronizeWritables) {
|
||||||
// no-op
|
// no-op
|
||||||
}
|
}
|
||||||
|
|
|
@ -230,7 +230,7 @@ void NDArray::synchronize(const char* msg) const {
|
||||||
if (res != 0)
|
if (res != 0)
|
||||||
throw std::runtime_error(msg + std::string(": synchronization failed !"));
|
throw std::runtime_error(msg + std::string(": synchronization failed !"));
|
||||||
}
|
}
|
||||||
#ifndef __JAVACPP_HACK__ && !defined(_JNI_IMPLEMENTATION_)
|
#if !defined(__JAVACPP_HACK__) && !defined(_JNI_IMPLEMENTATION_)
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
void NDArray::prepareSpecialUse(const std::vector<const NDArray*>& writeList, const std::vector<const NDArray*>& readList, bool synchronizeWritables) {
|
void NDArray::prepareSpecialUse(const std::vector<const NDArray*>& writeList, const std::vector<const NDArray*>& readList, bool synchronizeWritables) {
|
||||||
|
|
Loading…
Reference in New Issue