Skip to content

Conversation

kimishpatel
Copy link
Contributor

Summary: This diff adds attr getter to mobile::module similar to torchscript module at https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/api/object.h#L75-L83.

Test Plan: CI

Differential Revision: D24604950

@kimishpatel kimishpatel requested a review from apaszke as a code owner October 29, 2020 16:20
@facebook-github-bot facebook-github-bot added oncall: jit Add this issue/PR to JIT oncall triage queue fb-exported labels Oct 29, 2020
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D24604950

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D24604950

@iseeyuan
Copy link
Contributor

Would be nice to have get_attr for mobile module. Could you add a unit test on it? I think we could use model similar to https://github.com/pytorch/pytorch/blob/master/test/cpp/jit/test_lite_interpreter.cpp#L51

Summary:
Pull Request resolved: pytorch#47059

This diff adds attr getter to mobile::module similar to torchscript module at https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/api/object.h#L75-L83.

Test Plan: LiteInterpreterTest::CheckAttrAccess

Reviewed By: xta0

Differential Revision: D24604950

fbshipit-source-id: 829e9a9451b6bd12a291e1731feac14271196b37
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D24604950

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 82b74bd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed fb-exported Merged oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants