Skip to content

Commit

Permalink
Update PyTorch version to 0.10.0a (pytorch#59345)
Browse files Browse the repository at this point in the history
Summary:
Also fix `TestProducerVersion` by removing assumption that major and minor are single digit

Pull Request resolved: pytorch#59345

Reviewed By: robieta

Differential Revision: D28853720

Pulled By: malfet

fbshipit-source-id: 4b6d03c6b0c9d652a5aef792aaa84eaa522d10e8
  • Loading branch information
malfet authored and facebook-github-bot committed Jun 3, 2021
1 parent c829095 commit f1ce7f4
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .circleci/scripts/binary_populate_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ PIP_UPLOAD_FOLDER='nightly/'
# We put this here so that OVERRIDE_PACKAGE_VERSION below can read from it
export DATE="$(date -u +%Y%m%d)"
#TODO: We should be pulling semver version from the base version.txt
BASE_BUILD_VERSION="1.9.0.dev$DATE"
BASE_BUILD_VERSION="1.10.0.dev$DATE"
# Change BASE_BUILD_VERSION to git tag when on a git tag
# Use 'git -C' to make doubly sure we're in the correct directory for checking
# the git tag
Expand Down Expand Up @@ -136,7 +136,7 @@ if [[ "${BUILD_FOR_SYSTEM:-}" == "windows" ]]; then
fi
export DATE="$DATE"
export NIGHTLIES_DATE_PREAMBLE=1.9.0.dev
export NIGHTLIES_DATE_PREAMBLE=1.10.0.dev
export PYTORCH_BUILD_VERSION="$PYTORCH_BUILD_VERSION"
export PYTORCH_BUILD_NUMBER="$PYTORCH_BUILD_NUMBER"
export OVERRIDE_PACKAGE_VERSION="$PYTORCH_BUILD_VERSION"
Expand Down
4 changes: 2 additions & 2 deletions android/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ repositories {
dependencies {
...
implementation 'org.pytorch:pytorch_android:1.9.0-SNAPSHOT'
implementation 'org.pytorch:pytorch_android_torchvision:1.9.0-SNAPSHOT'
implementation 'org.pytorch:pytorch_android:1.10.0-SNAPSHOT'
implementation 'org.pytorch:pytorch_android_torchvision:1.10.0-SNAPSHOT'
...
}
```
Expand Down
2 changes: 1 addition & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ABI_FILTERS=armeabi-v7a,arm64-v8a,x86,x86_64

VERSION_NAME=1.9.0-SNAPSHOT
VERSION_NAME=1.10.0-SNAPSHOT
GROUP=org.pytorch
MAVEN_GROUP=org.pytorch
SONATYPE_STAGING_PROFILE=orgpytorch
Expand Down
4 changes: 2 additions & 2 deletions android/test_app/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ dependencies {
//nativeBuildImplementation(name: 'pytorch_android_torchvision-release', ext: 'aar')
//extractForNativeBuild(name: 'pytorch_android-release', ext: 'aar')

nightlyImplementation 'org.pytorch:pytorch_android:1.9.0-SNAPSHOT'
nightlyImplementation 'org.pytorch:pytorch_android_torchvision:1.9.0-SNAPSHOT'
nightlyImplementation 'org.pytorch:pytorch_android:1.10.0-SNAPSHOT'
nightlyImplementation 'org.pytorch:pytorch_android_torchvision:1.10.0-SNAPSHOT'

aarImplementation(name:'pytorch_android', ext:'aar')
aarImplementation(name:'pytorch_android_torchvision', ext:'aar')
Expand Down
2 changes: 1 addition & 1 deletion test/test_jit.py
Original file line number Diff line number Diff line change
Expand Up @@ -15968,7 +15968,7 @@ class TestProducerVersion(unittest.TestCase):

def test_version(self):
# issue gh-32561
self.assertEqual(torch.onnx.producer_version, torch.__version__[:3])
self.assertTrue(torch.__version__.startswith(torch.onnx.producer_version))


for test in autograd_method_tests():
Expand Down
2 changes: 1 addition & 1 deletion torch/csrc/onnx/onnx.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ enum class TrainingMode {
// stable. only bump it when it's necessary
static const size_t IR_VERSION = 6;
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
static const char* PRODUCER_VERSION = "1.9";
static const char* PRODUCER_VERSION = "1.10";
}} // namespace torch::onnx
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.9.0a0
1.10.0a0

0 comments on commit f1ce7f4

Please sign in to comment.