@@ -25,7 +25,7 @@ limitations under the License.
2525#include " tensorflow/core/kernels/ops_util.h"
2626#include " tensorflow/core/lib/core/errors.h"
2727
28- #if !defined(__ANDROID__ )
28+ #if !defined(IS_MOBILE_PLATFORM )
2929#include " tensorflow/core/util/work_sharder.h"
3030#endif
3131
@@ -87,7 +87,7 @@ class LRNOp : public OpKernel {
8787 context->allocate_output (
8888 0 , TensorShape ({batch, rows, cols, depth}), &output));
8989
90- #if defined(__ANDROID__ )
90+ #if defined(IS_MOBILE_PLATFORM )
9191 SingleThreadedLRN (in, batch, rows, cols, depth, output);
9292#else
9393 if (depth > kSingleThreadedLRNDepthCutoff &&
@@ -171,7 +171,7 @@ class LRNOp : public OpKernel {
171171
172172REGISTER_KERNEL_BUILDER (Name(" LRN" ).Device(DEVICE_CPU ), LRNOp);
173173
174- #if !defined(__ANDROID__ )
174+ #if !defined(IS_MOBILE_PLATFORM )
175175
176176class LRNGradOp : public OpKernel {
177177 public:
@@ -277,6 +277,6 @@ class LRNGradOp : public OpKernel {
277277
278278REGISTER_KERNEL_BUILDER (Name(" LRNGrad" ).Device(DEVICE_CPU ), LRNGradOp);
279279
280- #endif // !defined(__ANDROID__ )
280+ #endif // !defined(IS_MOBILE_PLATFORM )
281281
282282} // namespace tensorflow
0 commit comments