Skip to content

Conversation

@vishwakftw
Copy link
Contributor

  1. Add tests in test_cuda, test_torch
  2. Add doc strings

Closes #9378 .

cc: @alicanb

1. Add tests in test_cuda, test_torch
2. Add doc strings
@vishwakftw vishwakftw force-pushed the multivariate-gamma branch from c0c7f62 to fb45401 Compare July 14, 2018 21:14
@vishwakftw
Copy link
Contributor Author

@pytorchbot retest this please

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.

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

"mvlgamma is not implemented for ", self.type());
AT_CHECK((self > 0.5 * (p - 1.)).all().toCByte(),
"Condition for computing multivariate log-gamma not met");
AT_CHECK(p >= 1, "p has to greater than or equal to 1");

This comment was marked as off-topic.

This comment was marked as off-topic.

"Condition for computing multivariate log-gamma not met");
AT_CHECK(p >= 1, "p has to be greater than or equal to 1");
Tensor args = native::arange(-p + 1, 1, self.options()).div_(2.);
args = args.add(self.unsqueeze(-1));

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

AT_CHECK((self > 0.5 * (p - 1.)).all().toCByte(),
"Condition for computing multivariate log-gamma not met");
AT_CHECK(p >= 1, "p has to be greater than or equal to 1");
Tensor args = native::arange(-p + 1, 1, self.options()).div_(2.);

This comment was marked as off-topic.

This comment was marked as off-topic.

@vishwakftw
Copy link
Contributor Author

Is this good to go? Sorry about the reminder.

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.

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

@vishwakftw vishwakftw changed the title Add multivariate log-gamma (mvlgamma) [ready] Add multivariate log-gamma (mvlgamma) Jul 24, 2018
facebook-github-bot pushed a commit that referenced this pull request Jul 24, 2018
Summary:
1. Add tests in test_cuda, test_torch
2. Add doc strings

Closes #9378 .

Differential Revision: D8859746

Pulled By: ezyang

fbshipit-source-id: 939c309d90940a7aa08f53004c9e7b3b1c9cf54e
@vishwakftw vishwakftw closed this Jul 24, 2018
@vishwakftw vishwakftw deleted the multivariate-gamma branch July 24, 2018 19:12
jramseyer pushed a commit to jramseyer/pytorch that referenced this pull request Jul 30, 2018
Summary:
1. Add tests in test_cuda, test_torch
2. Add doc strings

Closes pytorch#9378 .

Differential Revision: D8859746

Pulled By: ezyang

fbshipit-source-id: 939c309d90940a7aa08f53004c9e7b3b1c9cf54e
goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
Summary:
1. Add tests in test_cuda, test_torch
2. Add doc strings

Closes pytorch#9378 .

Differential Revision: D8859746

Pulled By: ezyang

fbshipit-source-id: 939c309d90940a7aa08f53004c9e7b3b1c9cf54e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature request] Multivariate Gamma function

4 participants