Skip to content

Conversation

zdevito
Copy link
Contributor

@zdevito zdevito commented Oct 12, 2018

... they are basically the same class and I didn't see it in the initial PR. I also got resolvers back onto std::functions by keeping the function_table logic local to defineMethodInModules.

@zdevito zdevito added the oncall: jit Add this issue/PR to JIT oncall triage queue label Oct 12, 2018
Copy link
Collaborator

@jamesr66a jamesr66a left a comment

Choose a reason for hiding this comment

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

ok

@@ -361,33 +344,17 @@ static void gatherParametersAndBuffers(std::vector<at::Tensor*> & values, const
}

namespace {
struct PythonResolver : public Resolver {
struct PythonResolver {

This comment was marked as off-topic.

@zdevito zdevito force-pushed the pr/use_method_value branch from 2b01e6a to b2b94cf Compare October 12, 2018 19:04
@@ -804,14 +804,15 @@ inline bool isSupportedListElementType(TypePtr type) {
struct to_ir {
to_ir(
Def def,
std::shared_ptr<Resolver> resolver,
Resolver resolver,
SugaredValuePtr self,
Method& method) // method being constructed
: method(method)
, graph(method.graph())
, def(def)
, resolver(resolver)

This comment was marked as off-topic.

@@ -152,11 +152,11 @@ struct CastValue : public SugaredValue {
// the IR API, but for now we choose to pessimisitically create inputs and
// delete unnecessary ones later with replaceAllusesWith().
struct Environment {
Environment(Method & method, std::shared_ptr<Resolver> resolver, Block* b, std::shared_ptr<Environment> next = nullptr)
Environment(Method & method, Resolver resolver, Block* b, std::shared_ptr<Environment> next = nullptr)
: method(method), resolver(resolver), b(b), next(next) {}

This comment was marked as off-topic.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

zdevito has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
oncall: jit Add this issue/PR to JIT oncall triage queue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants