exclude two methods for JNI

Signed-off-by: raver119 <raver119@gmail.com>
master
raver119 2019-08-03 13:27:34 +03:00 committed by AlexDBlack
parent aefdbc17d6
commit 2447af0953
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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
} }

View File

@ -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) {