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

Conversation

@dan-zheng
Copy link
Member

Fixes type checking error after the swift-DEVELOPMENT-SNAPSHOT-2020-08-31-a -> tensorflow merge.

$ swift build
/swift-models/Examples/BERT-CoLA/main.swift:69:3: error: generic parameter 'Entropy' could not be inferred
) { (example: CoLAExample) -> CoLA.LabeledTextBatch in
  ^

An alternative fix is explicitly specifying CoLA<SystemRandomNumberGenerator>.LabeledTextBatch as the closure result type.

The underlying issue is probably related to closure result type inference changes.

Fixes "generic parameter 'Entropy' could not be inferred" type checking error
after the `swift-DEVELOPMENT-SNAPSHOT-2020-08-31-a -> tensorflow` merge.
@dan-zheng dan-zheng merged commit d68557f into tensorflow:master Sep 3, 2020
@dan-zheng dan-zheng deleted the appease-type-checker branch September 3, 2020 18:34
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