Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Fix deprecation warnings for method-style differential operators. #577

Merged
merged 3 commits into from
Dec 7, 2019

Conversation

dan-zheng
Copy link
Member

Before:

/swift-models/Gym/CartPole/main.swift:182:13: warning: 'gradient(in:)' is deprecated: Method-style differential operators are deprecated and will be removed; use top-level
function 'TensorFlow.gradient(at:in:)' instead
        net.gradient { net -> Tensor<Float> in
            ^

After:

/swift-models/Gym/CartPole/main.swift:182:13: warning: 'gradient(in:)' is deprecated: Method-style differential operators are deprecated and will be removed; use top-level function 'TensorFlow.gradient(at:in:)' instead
        net.gradient { net -> Tensor<Float> in
            ^

@dan-zheng dan-zheng requested review from marcrasi and bgogul December 7, 2019 02:39
@dan-zheng dan-zheng merged commit da8c8d6 into master Dec 7, 2019
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.

2 participants