Skip to content

Commit

Permalink
Create missing API defs on generation
Browse files Browse the repository at this point in the history
+ generate defs native artifact to contains TF native resources only required at generation
  • Loading branch information
karllessard committed Dec 11, 2023
1 parent a74aa11 commit bdb42a1
Show file tree
Hide file tree
Showing 2,960 changed files with 2,679 additions and 20,574 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:
jobs:
check-format:
if: github.event_name == 'pull_request'
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- name: Configure Java
uses: actions/setup-java@v2
Expand Down Expand Up @@ -50,7 +50,6 @@ jobs:
echo "Staging repository created: $STAGING_REPOSITORY_ID"
echo "::set-output name=stagingRepositoryId::$STAGING_REPOSITORY_ID"
linux-x86_64:
if: github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'CI build')
runs-on: ubuntu-20.04
needs: prepare
strategy:
Expand All @@ -71,7 +70,6 @@ jobs:
echo "<settings><servers><server><id>ossrh</id><username>${{ secrets.CI_DEPLOY_USERNAME }}</username><password>${{ secrets.CI_DEPLOY_PASSWORD }}</password></server></servers></settings>" > $HOME/.m2/settings.xml
mvn clean install -pl '!tensorflow-framework' -B -U -e -Djavacpp.platform=linux-x86_64 -Djavacpp.platform.extension=${{ matrix.ext }} -am -DstagingRepositoryId=${{ needs.prepare.outputs.stagingRepositoryId }}
macosx-x86_64:
if: github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'CI build')
runs-on: macos-11
needs: prepare
strategy:
Expand Down Expand Up @@ -131,7 +129,7 @@ jobs:
call mvn -version
echo ^<settings^>^<servers^>^<server^>^<id^>ossrh^</id^>^<username^>${{ secrets.CI_DEPLOY_USERNAME }}^</username^>^<password^>${{ secrets.CI_DEPLOY_PASSWORD }}^</password^>^</server^>^</servers^>^</settings^> > %USERPROFILE%\.m2\settings.xml
set "SKIP_EXPORT=true"
call mvn clean install -pl "!tensorflow-framework" -B -U -e -Djavacpp.platform=windows-x86_64 -Djavacpp.platform.extension=${{ matrix.ext }} -am -DstagingRepositoryId=${{ needs.prepare.outputs.stagingRepositoryId }}
call mvn clean install -pl "!tensorflow-framework" -B -U -e -Dnative.build -Djavacpp.platform=windows-x86_64 -Djavacpp.platform.extension=${{ matrix.ext }} -am -DstagingRepositoryId=${{ needs.prepare.outputs.stagingRepositoryId }}
if ERRORLEVEL 1 exit /b
deploy:
if: github.event_name == 'push' && contains(github.ref, 'master')
Expand Down
1 change: 1 addition & 0 deletions tensorflow-core/tensorflow-core-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
<argument>${project.basedir}/src/api</argument>
<argument>-o</argument>
<argument>${project.basedir}/src/gen/java</argument>
<argument>-c</argument>
</arguments>
</configuration>
</execution>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
op {
graph_op_name: "CollectiveAllToAllV2"
visibility: SKIP
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
op {
graph_op_name: "CollectiveReduceScatterV2"
endpoint {
name: "collective.CollectiveReduceScatter"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
op {
graph_op_name: "ComputeDedupDataTupleMask"
endpoint {
name: "tpu.ComputeDedupDataTupleMask"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
op {
graph_op_name: "Conv"
endpoint {
name: "nn.Conv"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
op {
graph_op_name: "Conv2DBackpropFilter"
endpoint {
name: "nn.Conv2dBackpropFilter"
}
visibility: SKIP
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
op {
graph_op_name: "Conv2DBackpropFilterV2"
visibility: VISIBLE
endpoint {
name: "nn.Conv2DBackpropFilter"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
op {
graph_op_name: "Conv2DBackpropInput"
endpoint {
name: "nn.Conv2dBackpropInput"
}
visibility: SKIP
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
op {
graph_op_name: "Conv2DBackpropInputV2"
visibility: VISIBLE
endpoint {
name: "nn.Conv2DBackpropInput"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
op {
graph_op_name: "CopyToMeshGrad"
endpoint {
name: "CopyToMeshGrad"
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
op {
graph_op_name: "DebugIdentityV2"
endpoint {
name: "debugging.DebugIdentity"
}
visibility: HIDDEN
visibility: SKIP
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
op {
graph_op_name: "DebugIdentityV2"
graph_op_name: "DebugIdentityV3"
visibility: HIDDEN
endpoint {
name: "debugging.DebugIdentity"
}
visibility: HIDDEN
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
op {
graph_op_name: "DistributedSave"
endpoint {
name: "train.DistributedSave"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
op {
graph_op_name: "DynamicEnqueueTPUEmbeddingRaggedTensorBatch"
endpoint {
name: "tpu.DynamicEnqueueTPUEmbeddingRaggedTensorBatch"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
op {
graph_op_name: "FFTND"
endpoint {
name: "signal.FftNd"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
op {
graph_op_name: "IFFTND"
endpoint {
name: "signal.IfftNd"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
op {
graph_op_name: "IRFFTND"
endpoint {
name: "signal.IrfftNd"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
op {
graph_op_name: "MergeDedupData"
endpoint {
name: "tpu.MergeDedupData"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
op {
graph_op_name: "RFFTND"
endpoint {
name: "signal.RfftNd"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
op {
graph_op_name: "RaggedFillEmptyRows"
endpoint {
name: "ragged.RaggedFillEmptyRows"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
op {
graph_op_name: "RaggedFillEmptyRowsGrad"
endpoint {
name: "ragged.RaggedFillEmptyRowsGrad"
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
op {
graph_op_name: "RandomDataset"
visibility: VISIBLE
endpoint {
name: "data.RandomDataset"
}
visibility: SKIP
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
op {
graph_op_name: "RandomDataset"
graph_op_name: "RandomDatasetV2"
visibility: VISIBLE
endpoint {
name: "data.RandomDataset"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
op {
graph_op_name: "RelayoutLike"
endpoint {
name: "RelayoutLike"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
op {
graph_op_name: "SegmentMax"
endpoint {
name: "math.SegmentMax"
}
visibility: SKIP
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
op {
graph_op_name: "SegmentMax"
graph_op_name: "SegmentMaxV2"
endpoint {
name: "math.SegmentMax"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
op {
graph_op_name: "SegmentMin"
endpoint {
name: "math.SegmentMin"
}
visibility: SKIP
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
op {
graph_op_name: "SegmentMin"
graph_op_name: "SegmentMinV2"
endpoint {
name: "math.SegmentMin"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
op {
graph_op_name: "SegmentProd"
endpoint {
name: "math.SegmentProd"
}
visibility: SKIP
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
op {
graph_op_name: "SegmentProd"
graph_op_name: "SegmentProdV2"
endpoint {
name: "math.SegmentProd"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
op {
graph_op_name: "SegmentSum"
endpoint {
name: "math.SegmentSum"
}
visibility: SKIP
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
op {
graph_op_name: "SegmentSum"
graph_op_name: "SegmentSumV2"
endpoint {
name: "math.SegmentSum"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
op {
graph_op_name: "SnapshotChunkDataset"
endpoint {
name: "data.SnapshotChunkDataset"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
op {
graph_op_name: "SparseSegmentMeanGrad"
endpoint {
name: "sparse.SparseSegmentMeanGrad"
}
visibility: SKIP
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
op {
graph_op_name: "SparseSegmentMeanGrad"
graph_op_name: "SparseSegmentMeanGradV2"
endpoint {
name: "sparse.SparseSegmentMeanGrad"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
op {
graph_op_name: "SparseSegmentSqrtNGrad"
endpoint {
name: "sparse.SparseSegmentSqrtNGrad"
}
visibility: SKIP
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
op {
graph_op_name: "SparseSegmentSqrtNGrad"
graph_op_name: "SparseSegmentSqrtNGradV2"
endpoint {
name: "sparse.SparseSegmentSqrtNGrad"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
op {
graph_op_name: "SparseSegmentSumGrad"
endpoint {
name: "sparse.SparseSegmentSumGrad"
}
visibility: SKIP
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
op {
graph_op_name: "SparseSegmentSumGrad"
graph_op_name: "SparseSegmentSumGradV2"
endpoint {
name: "sparse.SparseSegmentSumGrad"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
op {
graph_op_name: "SplitDedupData"
endpoint {
name: "tpu.SplitDedupData"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
op {
graph_op_name: "StatelessRandomGammaV2"
endpoint {
name: "random.StatelessRandomGamma"
}
visibility: SKIP
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
op {
graph_op_name: "StatelessRandomGammaV2"
graph_op_name: "StatelessRandomGammaV3"
endpoint {
name: "random.StatelessRandomGamma"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
op {
graph_op_name: "StochasticCastToInt"
endpoint {
name: "StochasticCastToInt"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
op {
graph_op_name: "SyncDevice"
endpoint {
name: "SyncDevice"
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
op {
graph_op_name: "TFRecordDataset"
visibility: VISIBLE
endpoint {
name: "data.TfRecordDataset"
}
visibility: SKIP
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
op {
graph_op_name: "TFRecordDataset"
graph_op_name: "TFRecordDatasetV2"
visibility: VISIBLE
endpoint {
name: "data.TfRecordDataset"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
op {
graph_op_name: "TPUPartitionedInput"
endpoint: {
name: "tpu.PartitionedInput"
}
visibility: SKIP
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
op {
graph_op_name: "TPUPartitionedInputV2"
endpoint {
name: "tpu.PartitionedInput"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
op {
graph_op_name: "TPUPartitionedOutput"
endpoint: {
name: "tpu.PartitionedOutput"
}
visibility: SKIP
}
Loading

0 comments on commit bdb42a1

Please sign in to comment.