Skip to content

Conversation

@yf225
Copy link
Contributor

@yf225 yf225 commented Nov 12, 2019

Stack from ghstack:

Following #29364 and #29404, this PR makes F::EmbeddingFuncOptions and F::EmbeddingBagFuncOptions separate classes from torch::nn::EmbeddingOptions and torch::nn::EmbeddingBagOptions, so that it's easier to enforce that arguments such as num_embeddings and embedding_dim are required for torch::nn::EmbeddingOptions and torch::nn::EmbeddingBagOptions.

Differential Revision: D18462540

Use F::*FuncOptions for embedding/embeddingbag functionals

gh-metadata: pytorch pytorch 29673 gh/yf225/68/head
@yf225 yf225 requested review from anjali411 and pbelevich November 12, 2019 23:01
@kostmo
Copy link
Member

kostmo commented Nov 12, 2019

CircleCI build failures summary

As of commit ad3ce4f:

  • 1/1 failures introduced in this PR
  • 0/1 recognized as flaky

Here are the reasons each build failed:

Job Step Log excerpt
pytorch_xla_linux_xenial_py3_6_clang7_build Build Failed to run '['/var/lib/jenkins/workspace/xla/scripts/generate_code.sh']'

This comment was automatically generated by Dr. CI.
Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker.

This comment has been revised 10 time(s).

Use F::*FuncOptions for embedding/embeddingbag functionals

gh-metadata: pytorch pytorch 29673 gh/yf225/68/head
@facebook-github-bot
Copy link
Contributor

@yf225 merged this pull request in a68c524.

@facebook-github-bot facebook-github-bot deleted the gh/yf225/68/head branch November 17, 2019 15:15
csarofeen pushed a commit to mruberry/pytorch that referenced this pull request Nov 18, 2019
…9673)

Summary:
Pull Request resolved: pytorch#29673

Following pytorch#29364 and pytorch#29404, this PR makes `F::EmbeddingFuncOptions` and `F::EmbeddingBagFuncOptions` separate classes from `torch::nn::EmbeddingOptions` and `torch::nn::EmbeddingBagOptions`, so that it's easier to enforce that arguments such as `num_embeddings` and `embedding_dim` are required for `torch::nn::EmbeddingOptions` and `torch::nn::EmbeddingBagOptions`.

Test Plan: Imported from OSS

Differential Revision: D18462540

Pulled By: yf225

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

Labels

Merged module: cpp Related to C++ API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants