Skip to content

Conversation

@nishi-t
Copy link
Contributor

@nishi-t nishi-t commented Oct 26, 2018

This PR adds following operators support to tensorflow frontend:

  • Split
  • SplitV


# Relational ops
test_forward_rel_ops()

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest to move under transforms.

_test_forward_rel_op([t1, t2], math_ops.equal)
_test_forward_rel_op([t1, t2], math_ops.not_equal)

#######################################################################
Copy link
Contributor

Choose a reason for hiding this comment

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

Pls add another test case with Split+Concat.

test_forward_reduce()
test_forward_mean()
#test_forward_reduce()
#test_forward_mean()
Copy link

Choose a reason for hiding this comment

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

Any particular reason for commenting them?

Copy link

Choose a reason for hiding this comment

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

Saw changes in your fix.

@tqchen tqchen added the status: need update need update based on feedbacks label Oct 27, 2018
@nishi-t nishi-t force-pushed the tf_split branch 3 times, most recently from 93ab1c2 to 3ef3ec0 Compare October 29, 2018 04:28
Copy link
Contributor

@srkreddy1238 srkreddy1238 left a comment

Choose a reason for hiding this comment

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

Thanks @nishi-t. LGTM.

Copy link
Contributor

@srkreddy1238 srkreddy1238 left a comment

Choose a reason for hiding this comment

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

@nishi-t
#1572
You can take ref from this about how to handle split output.

@nishi-t
Copy link
Contributor Author

nishi-t commented Oct 29, 2018

Thank you for your review and approve, but the test case that concat after split currently is not passed. For now, I'll comment out this test case.

@nishi-t
Copy link
Contributor Author

nishi-t commented Oct 29, 2018

@srkreddy1238 Thaks for the information. I'll check it out and work on the problem of handling split outputs.

@alexeyr
Copy link
Contributor

alexeyr commented Nov 16, 2018

I think my pull request #2105 got SplitV correct. For your case it should be tuple(np.cumsum(indices)[:-1]).

@nishi-t
Copy link
Contributor Author

nishi-t commented Nov 16, 2018

Sorry, I couldn't work for this PR recently. I'll close my PR.
@alexeyr Thank you for submitting PR to support Split.

@nishi-t nishi-t closed this Nov 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: need update need update based on feedbacks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants