Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Tensorflow 0.5 #210

Merged
merged 32 commits into from
Sep 24, 2019
Merged

Tensorflow 0.5 #210

merged 32 commits into from
Sep 24, 2019

Conversation

ematejska
Copy link

Staging merging the tensorflow 0.5 changes to the stable release once the release goes live.

kirillbobyrev and others added 30 commits May 5, 2019 03:55
Except `main.swift` files which are the entry points for executables.

Running the following command does not produce any output:

`find . -type f -name "[[:lower:]]*.swift" | rg --pcre2 "^(?!.*(main.swift))"`

Resolves #133.
… work with the bigger GPT-2 models (It is called "staged release". as of now, only 117M and 345M are available). (#154)
- Add MNIST test set evaluation.
- The batch size and the optimizer are changed to `128` and `Adam`, respectively, based on test set evaluation results. Tested with higher batch sizes [256, 512], but found no improvement in performance.
…w issues caused by `swift-apis` changes. (#166)

* Updated Transformer and MNIST models to work with 2019-06-04 development snapshot.
* Updated other models.
* Updated ResNet to work with 2019-06-04 development snapshot.
* Updated Catch and CIFAR models.
* Added a method to satisfy TensorGroup protocol that can pass build.
New 'Differentiable' derived conformances will not include constant properties in the tangent space.
…port. (#176)

This replicates the following pull request on swift-apis: tensorflow/swift-apis#374 , adding a `swift-format` configuration file. Note the cautions indicated in that pull request around use of `swift-format` at present.

This also adds a .gitignore line to prevent Xcode 11's new SwiftPM support from adding supporting files to the repository.
* Replaced all Python code in the CIFAR10 and ResNet examples, removing Python 3 dependency.

* Needed to import FoundationNetworking on Linux.

* Added a check for FoundationNetworking, added an early exit for cached directory check.

* Removed macOS availability check by targeting 10.13 in the package.

* Style and formatting fixes.

* Removed no-longer-needed _tensorHandles and supporting code.
* Add GAN Example

* Remove do blocks

* Replace lrelu with closure

* Remove typealiases

* Add comment

* Remove labels in GAN example

* Rename variables

* Code formatting, update comments

* Fix: latentDim -> latentSize

* Add spaces around *

* Code formatting, rename loss functions

* Fix: generatorLossFunc -> generatorLoss

* Break lines to make it fit within 100 columns

* Update comments

* Rename plot->plotImage, imageGrid->gridImage, Code formatting

* Refactor: Label creation

* Update comment

* Remove type parameter, empty line

* Update readme
…aset code (#182)

* Extracted MNIST dataset, created LeNet network, added example combining the two.

* Extracted redundant MNIST loading code from GAN and Autoencoder examples, replaced with central MNIST dataset.

* Renamed input parameters and applied standard formatting style to MNIST.

* Punctuation correction.

Co-Authored-By: Richard Wei <[email protected]>

* README formatting update.

Co-Authored-By: Richard Wei <[email protected]>

* Renamed trainImages -> trainingImages, corrected Python package names, formatted Package.swift.
This file is no longer needed apple/swift #26023 and may be causing the segfault reported in swift-apis #186.
…ResNet code (#185)

* Extracted CIFAR-10 dataset and ResNet models into respective modules.

* Minor formatting fixes.

* Mirroring PR #187.
#192)

* [Models] Fix enumeration of blocks in `ResidualBasicBlockStack` initialization

* Start range at

* Update ranges
* Add files via upload

* Implemented requested changes

Corrected formatting mistakes, used dropout correctly, removed the hard coded number of classes and improved overall readability.

* Update SqeezeNet.swift

Renamed numClasses to classCount and limited all lines to a size of 100.
* add identity connections to WideResNet

* rename preact1 for clarity

* remove extra relu, add dropout

* fix declarartion

* skip dropout in expansion blocks

* remove enum, res layers to one line
…dependencies (#188)

* Added an Image struct as a wrapper for JPEG loading / saving, removed matplotlib dependency from GAN and Autoencoder examples using this.

* Formatting update for Autoencoder.

* Bring this inline with current API.

* Made saveImage() a throwing function, improved formatting.

* Changed function parameter.
* Convert MNIST classifier to use sequential

* Review Changes

* Remove ImageClassification Models
#198)

* Implemented inference tests with random tensors and starting weights for all classification models.

* Made sure tests ran on Linux, reshaped output of SqueezeNet to match other classification models.

* WideResNet is expressed in terms of CIFAR10, so altered the inputs and outputs appropriately.

* Wrapping the reshaping line in SqueezeNet.

* Reset ownership.

* Reworked TensorShape initializers to use array literals.

* Minor formatting tweak to SqueezeNet.
[swift-apis/#497](tensorflow/swift-apis#497) removes deprecated apis, now that we are moving onward to v0.5. This PR updates the catch file which uses a deprecated dense layer.
Shashi456 and others added 2 commits August 30, 2019 09:30
* Update squeezenet and add V1.1 version

* value error

* Update tests

* review changes
@ematejska ematejska requested a review from rxwei September 24, 2019 16:19
@googlebot
Copy link

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@ematejska
Copy link
Author

Regarding the CLA's, all the commits were already contributed to this project, we are just moving them to another branch.

@ematejska ematejska requested a review from dan-zheng September 24, 2019 17:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.