Skip to content

Conversation

@suo
Copy link
Member

@suo suo commented Aug 7, 2018

As title.

@suo suo added the oncall: jit Add this issue/PR to JIT oncall triage queue label Aug 7, 2018
@suo suo requested review from apaszke, jamesr66a and zdevito August 7, 2018 18:09
Operator("aten::add(Tensor[] a, Tensor[] b) -> Tensor[]", listAdd<Shared<TensorList>, at::Tensor>),

Operator(
"aten::slice(int[] l, int start, int end=9223372036854775807, int step=1) -> int[]",

This comment was marked as off-topic.


template <typename TList, typename TElement>
Operation listSlice(Node* node) {
return [=](Stack& stack) {

This comment was marked as off-topic.

int64_t step;

pop(stack, list, begin, end, step);
std::vector<TElement> sliced_list;

This comment was marked as off-topic.

Copy link
Contributor

@apaszke apaszke left a comment

Choose a reason for hiding this comment

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

LGTM

// Build the input arguments
std::vector<NamedValue> args = {sliceable};
if (sliceable.value->type()->kind() == TypeKind::DynamicType) {
// If the sliceable opject is a tensor, specify a default dimension

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.

michaelsuo is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

PenghuiCheng pushed a commit to PenghuiCheng/pytorch that referenced this pull request Aug 10, 2018
Summary:
As title.
Pull Request resolved: pytorch#10318

Differential Revision: D9254351

Pulled By: michaelsuo

fbshipit-source-id: be891a584dc295b5e353f7f5257d64a356fb9586
@suo suo deleted the suo/slice branch August 14, 2018 04:32
goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
Summary:
As title.
Pull Request resolved: pytorch#10318

Differential Revision: D9254351

Pulled By: michaelsuo

fbshipit-source-id: be891a584dc295b5e353f7f5257d64a356fb9586
@ezyang ezyang added the merged label Jun 26, 2019
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.

6 participants