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

Conversation

@leoxzhao
Copy link
Contributor

@leoxzhao leoxzhao commented Jun 6, 2019

Partially fixes #165.

data = Tensor<Float>(handle: TensorHandle<Float>(handle: _handles[dataIndex]))
}

//public var _tensorHandles: [_AnyTensorHandle] { [label.handle.handle, data.handle.handle] }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel this is a bug, but not entirely sure. How else to satisfy TensorGroup protocol?

Copy link
Contributor

@rxwei rxwei Jun 6, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a known regression introduced in tensorflow/swift-apis#165 and should be fixed soon. You can look at test cases in that PR to see how they satisfied the requirements.

@leoxzhao
Copy link
Contributor Author

leoxzhao commented Jun 6, 2019

I have incorporated this change into #166 so that one PR updates all models. Close this PR.

@leoxzhao leoxzhao closed this Jun 6, 2019
@rxwei
Copy link
Contributor

rxwei commented Jun 6, 2019

Sounds good!

pschuh pushed a commit to pschuh/swift-models that referenced this pull request Jul 30, 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.

Rename 'call' to 'callAsFunction'.

2 participants