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

Conversation

nicolasvasilache
Copy link
Contributor

@nicolasvasilache nicolasvasilache commented Jul 2, 2018

This PR introduces a few modifications to sync OSS to fbcode.

  1. Caffe2 API killed the copy constructor and now requires an explicit cast.
  2. improper division operator was used in min_distance.py
  3. updating the caffe2 test and benchmark to the new API

Tested internally with the latest API.

nicolasvasilache added a commit that referenced this pull request Jul 3, 2018
@nicolasvasilache nicolasvasilache force-pushed the pr/caffe2-update branch 2 times, most recently from f99e476 to f938693 Compare July 3, 2018 22:28
Caffe2 API killed the copy constructor so we need to update
`GetNamedTensor`. So we use the Caffe2 API to return a new
tensor that shares the data with the tensor from the workspace.

Tested internally with the latest API.
Without this, the following error occurs:
`TypeError: 'float' object cannot be interpreted as an integer`
Nicolas Vasilache added 2 commits July 6, 2018 08:38
Copy link
Contributor

@mingzhe09088 mingzhe09088 left a comment

Choose a reason for hiding this comment

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

Looks good. As we discussed, we want to revive the tc + caffe2 API for autotuner to only take shape information.

@nicolasvasilache nicolasvasilache merged commit b77b583 into facebookresearch:master Jul 6, 2018
@nicolasvasilache nicolasvasilache deleted the pr/caffe2-update branch July 6, 2018 16:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants