File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
tensorflow-core/tensorflow-core-api Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -228,6 +228,7 @@ jobs:
228228 )
229229 df -h
230230 wmic pagefile list /format:list
231+ set "SKIP_EXPORT=true"
231232 echo Executing Maven %MAVEN_PHASE%
232233 call mvn clean %MAVEN_PHASE% -B -U -e -Djavacpp.platform=windows-x86_64 -Djavacpp.platform.extension=${{ matrix.ext }} -pl %NATIVE_BUILD_PROJECTS% -am -DstagingRepositoryId=${{ needs.prepare.outputs.stagingRepositoryId }} "-Dnative.build.flags=%BAZEL_CACHE%"
233234 if ERRORLEVEL 1 exit /b
Original file line number Diff line number Diff line change @@ -82,10 +82,15 @@ mkdir -p $GEN_SRCS_DIR
8282GEN_RESOURCE_DIR=src/gen/resources/org/tensorflow/op
8383mkdir -p $GEN_RESOURCE_DIR
8484
85- # Export op defs
86- $BAZEL_BIN /java_op_exporter \
87- --api_dirs=$BAZEL_SRCS /external/org_tensorflow/tensorflow/core/api_def/base_api,src/bazel/api_def \
88- $TENSORFLOW_LIB > $GEN_RESOURCE_DIR /ops.pb
85+ if [[ -z " ${SKIP_EXPORT:- } " ]]; then
86+ # Export op defs
87+ echo " Exporting Ops"
88+ $BAZEL_BIN /java_op_exporter \
89+ --api_dirs=$BAZEL_SRCS /external/org_tensorflow/tensorflow/core/api_def/base_api,src/bazel/api_def \
90+ $TENSORFLOW_LIB > $GEN_RESOURCE_DIR /ops.pb
91+ else
92+ echo " Skipping Op export"
93+ fi
8994
9095
9196# Copy generated Java protos from source jars
You can’t perform that action at this time.
0 commit comments