Skip to content

OpInfo for *_like functions#65941

Closed
zou3519 wants to merge 10 commits intogh/zou3519/385/basefrom
gh/zou3519/385/head
Closed

OpInfo for *_like functions#65941
zou3519 wants to merge 10 commits intogh/zou3519/385/basefrom
gh/zou3519/385/head

Conversation

@zou3519
Copy link
Contributor

@zou3519 zou3519 commented Sep 30, 2021

Stack from ghstack:

OpInfos for: empty_like, zeros_like, ones_like, full_like, randn_like

Test Plan:

  • run tests

Differential Revision: D31452625

OpInfos for: empty_like, zeros_like, ones_like, full_like, randn_like

Test Plan:
- run tests

[ghstack-poisoned]
@pytorch-probot
Copy link

pytorch-probot bot commented Sep 30, 2021

CI Flow Status

⚛️ CI Flow

Ruleset - Version: v1
Ruleset - File: https://github.com/pytorch/pytorch/blob/b12cb4062af9432124a9454b11be498239a1e78d/.github/generated-ciflow-ruleset.json
PR ciflow labels: ciflow/default,ciflow/all

Workflows Labels (bold enabled) Status
Triggered Workflows
libtorch-linux-xenial-cuda10.2-py3.6-gcc7 ciflow/all, ciflow/cuda, ciflow/libtorch, ciflow/linux ✅ triggered
libtorch-linux-xenial-cuda11.3-py3.6-gcc7 ciflow/all, ciflow/cuda, ciflow/libtorch, ciflow/linux ✅ triggered
linux-bionic-cuda10.2-py3.9-gcc7 ciflow/all, ciflow/cuda, ciflow/linux, ciflow/slow ✅ triggered
linux-bionic-py3.6-clang9 ciflow/all, ciflow/cpu, ciflow/default, ciflow/linux, ciflow/noarch, ciflow/xla ✅ triggered
linux-vulkan-bionic-py3.6-clang9 ciflow/all, ciflow/cpu, ciflow/default, ciflow/linux, ciflow/vulkan ✅ triggered
linux-xenial-cuda10.2-py3.6-gcc7 ciflow/all, ciflow/cuda, ciflow/linux, ciflow/slow ✅ triggered
linux-xenial-cuda11.3-py3.6-gcc7 ciflow/all, ciflow/cuda, ciflow/default, ciflow/linux ✅ triggered
linux-xenial-py3.6-clang7-asan ciflow/all, ciflow/cpu, ciflow/default, ciflow/linux, ciflow/sanitizers ✅ triggered
linux-xenial-py3.6-clang7-onnx ciflow/all, ciflow/cpu, ciflow/default, ciflow/linux, ciflow/onnx ✅ triggered
linux-xenial-py3.6-gcc5.4 ciflow/all, ciflow/cpu, ciflow/default, ciflow/linux ✅ triggered
linux-xenial-py3.6-gcc7-bazel-test ciflow/all, ciflow/bazel, ciflow/cpu, ciflow/default, ciflow/linux ✅ triggered
parallelnative-linux-xenial-py3.6-gcc5.4 ciflow/all, ciflow/cpu, ciflow/linux ✅ triggered
periodic-libtorch-linux-xenial-cuda11.1-py3.6-gcc7 ciflow/all, ciflow/cuda, ciflow/libtorch, ciflow/linux, ciflow/scheduled ✅ triggered
periodic-linux-xenial-cuda10.2-py3-gcc7-slow-gradcheck ciflow/all, ciflow/cuda, ciflow/linux, ciflow/scheduled, ciflow/slow, ciflow/slow-gradcheck ✅ triggered
periodic-linux-xenial-cuda11.1-py3.6-gcc7 ciflow/all, ciflow/cuda, ciflow/linux, ciflow/scheduled ✅ triggered
periodic-win-vs2019-cuda11.1-py3 ciflow/all, ciflow/cuda, ciflow/scheduled, ciflow/win ✅ triggered
puretorch-linux-xenial-py3.6-gcc5.4 ciflow/all, ciflow/cpu, ciflow/linux ✅ triggered
win-vs2019-cpu-py3 ciflow/all, ciflow/cpu, ciflow/default, ciflow/win ✅ triggered
win-vs2019-cuda11.3-py3 ciflow/all, ciflow/cuda, ciflow/default, ciflow/win ✅ triggered
Skipped Workflows

You can add a comment to the PR and tag @pytorchbot with the following commands:
# ciflow rerun, "ciflow/default" will always be added automatically
@pytorchbot ciflow rerun

# ciflow rerun with additional labels "-l <ciflow/label_name>", which is equivalent to adding these labels manually and trigger the rerun
@pytorchbot ciflow rerun -l ciflow/scheduled -l ciflow/slow

For more information, please take a look at the CI Flow Wiki.

@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Sep 30, 2021

🔗 Helpful links

💊 CI failures summary and remediations

As of commit b12cb40 (more details on the Dr. CI page):


  • 2/2 failures introduced in this PR

🕵️ 2 new failures recognized by patterns

The following CI failures do not appear to be due to upstream breakages:

See GitHub Actions build linux-xenial-cuda10.2-py3.6-gcc7 / test (default, 2, 2, linux.8xlarge.nvidia.gpu) (1/2)

Step: "Test" (full log | diagnosis details | 🔁 rerun)

2021-10-11T20:50:32.9562016Z docker: Got permis... /var/run/docker.sock: connect: permission denied.
2021-10-11T20:50:31.7227953Z   CIRCLE_SHA1: b12cb4062af9432124a9454b11be498239a1e78d
2021-10-11T20:50:31.7230921Z   DOCKER_IMAGE: 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/pytorch-linux-xenial-cuda10.2-cudnn7-py3-gcc7:4606eec1a0ff062abcb634825d2b0c3c17766035
2021-10-11T20:50:31.7234283Z   JOB_BASE_NAME: linux-xenial-cuda10.2-py3.6-gcc7-test
2021-10-11T20:50:31.7235653Z   TEST_CONFIG: default
2021-10-11T20:50:31.7236472Z   SHARD_NUMBER: 2
2021-10-11T20:50:31.7237212Z   NUM_TEST_SHARDS: 2
2021-10-11T20:50:31.7238135Z   PYTORCH_IGNORE_DISABLED_ISSUES: 
2021-10-11T20:50:31.7239060Z   GPU_FLAG: --gpus all
2021-10-11T20:50:31.7239834Z   SHM_SIZE: 2g
2021-10-11T20:50:31.7240566Z ##[endgroup]
2021-10-11T20:50:32.9562016Z docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/create": dial unix /var/run/docker.sock: connect: permission denied.
2021-10-11T20:50:32.9564067Z See 'docker run --help'.
2021-10-11T20:50:32.9765629Z ##[error]The operation was canceled.
2021-10-11T20:50:32.9873376Z Cleaning up orphan processes

See GitHub Actions build periodic-linux-xenial-cuda11.1-py3.6-gcc7 / build (2/2)

Step: "Build" (full log | diagnosis details | 🔁 rerun)

2021-10-11T20:32:26.3628713Z �[0m�[1m�[31mERROR...eof ((socklen_t)))\n ^\n" }
2021-10-11T20:32:26.3615000Z �[0m�[1m�[31mERROR�[0m 2021-10-11T20:29:34Z: sccache::server: Compilation failed: Output { status: ExitStatus(ExitStatus(256)), stdout: "", stderr: "conftest.c: In function \'main\':\nconftest.c:332:2: error: \'struct sockaddr\' has no member named \'sa_len\'\n x.sa_len = 0;\n  ^\n" }
2021-10-11T20:32:26.3616475Z 
2021-10-11T20:32:26.3618520Z �[0m�[1m�[31mERROR�[0m 2021-10-11T20:29:37Z: sccache::server: Compilation failed: Output { status: ExitStatus(ExitStatus(256)), stdout: "", stderr: "conftest.c: In function \'main\':\nconftest.c:366:10: error: \'RTLD_MEMBER\' undeclared (first use in this function); did you mean \'RTLD_NEXT\'?\n   (void) RTLD_MEMBER;\n          ^~~~~~~~~~~\n          RTLD_NEXT\nconftest.c:366:10: note: each undeclared identifier is reported only once for each function it appears in\n" }
2021-10-11T20:32:26.3619685Z 
2021-10-11T20:32:26.3621413Z �[0m�[1m�[31mERROR�[0m 2021-10-11T20:29:38Z: sccache::server: Compilation failed: Output { status: ExitStatus(ExitStatus(256)), stdout: "", stderr: "conftest.c:361:9: error: unknown type name \'not\'\n         not a universal capable compiler\n         ^~~\nconftest.c:361:15: error: expected \'=\', \',\', \';\', \'asm\' or \'__attribute__\' before \'universal\'\n         not a universal capable compiler\n               ^~~~~~~~~\nconftest.c:361:15: error: unknown type name \'universal\'\n" }
2021-10-11T20:32:26.3622590Z 
2021-10-11T20:32:26.3624154Z �[0m�[1m�[31mERROR�[0m 2021-10-11T20:29:38Z: sccache::server: Compilation failed: Output { status: ExitStatus(ExitStatus(256)), stdout: "", stderr: "conftest.c: In function \'main\':\nconftest.c:367:4: error: unknown type name \'not\'; did you mean \'ino_t\'?\n    not big endian\n    ^~~\n    ino_t\nconftest.c:367:12: error: expected \'=\', \',\', \';\', \'asm\' or \'__attribute__\' before \'endian\'\n    not big endian\n            ^~~~~~\n" }
2021-10-11T20:32:26.3625205Z 
2021-10-11T20:32:26.3626573Z �[0m�[1m�[31mERROR�[0m 2021-10-11T20:29:39Z: sccache::server: Compilation failed: Output { status: ExitStatus(ExitStatus(256)), stdout: "", stderr: "conftest.c: In function \'main\':\nconftest.c:378:4: error: \'struct stat\' has no member named \'st_mtimespec\'; did you mean \'st_mtim\'?\n st.st_mtimespec.tv_nsec = 1;\n    ^~~~~~~~~~~~\n    st_mtim\n" }
2021-10-11T20:32:26.3627463Z 
2021-10-11T20:32:26.3628713Z �[0m�[1m�[31mERROR�[0m 2021-10-11T20:29:41Z: sccache::server: Compilation failed: Output { status: ExitStatus(ExitStatus(256)), stdout: "", stderr: "conftest.c: In function \'main\':\nconftest.c:402:24: error: expected expression before \')\' token\n if (sizeof ((socklen_t)))\n                        ^\n" }
2021-10-11T20:32:26.3629505Z 
2021-10-11T20:32:26.3632524Z �[0m�[1m�[31mERROR�[0m 2021-10-11T20:30:43Z: sccache::server: Compilation failed: Output { status: ExitStatus(ExitStatus(256)), stdout: "", stderr: "\u{1b}[01m\u{1b}[K/var/lib/jenkins/workspace/torch/csrc/autograd/python_variable.cpp:\u{1b}[m\u{1b}[K In function \'\u{1b}[01m\u{1b}[Kvoid {anonymous}::concrete_dispatch_fn(const c10::impl::PyInterpreter*, const c10::OperatorHandle&, torch::jit::Stack*, const std::shared_ptr<c10::TorchDispatchTypeObject>&)\u{1b}[m\u{1b}[K\':\n\u{1b}[01m\u{1b}[K/var/lib/jenkins/workspace/torch/csrc/autograd/python_variable.cpp:1593:14:\u{1b}[m\u{1b}[K \u{1b}[01;31m\u{1b}[Kerror: \u{1b}[m\u{1b}[Kunused variable \'\u{1b}[01m\u{1b}[Knum_returns\u{1b}[m\u{1b}[K\' [\u{1b}[01;31m\u{1b}[K-Werror=unused-variable\u{1b}[m\u{1b}[K]\n   const auto \u{1b}[01;31m\u{1b}[Knum_returns\u{1b}[m\u{1b}[K = schema.returns().size();\n              \u{1b}[01;31m\u{1b}[K^~~~~~~~~~~\u{1b}[m\u{1b}[K\ncc1plus: all warnings being treated as errors\n" }
2021-10-11T20:32:26.3634689Z 
2021-10-11T20:32:26.3757720Z �[0m�[1m�[31mERROR�[0m 2021-10-11T20:30:57Z: sccache::server: Compilation failed: Output { status: ExitStatus(ExitStatus(256)), stdout: "", stderr: "In file included from \u{1b}[01m\u{1b}[K/var/lib/jenkins/workspace/torch/csrc/generic/Storage.cpp:392:0\u{1b}[m\u{1b}[K,\n                 from \u{1b}[01m\u{1b}[Ktorch/csrc/generic/Storage.cpp:1\u{1b}[m\u{1b}[K,\n                 from \u{1b}[01m\u{1b}[K/var/lib/jenkins/workspace/aten/src/TH/THGenerateFloatTypes.h:10\u{1b}[m\u{1b}[K,\n                 from \u{1b}[01m\u{1b}[K/var/lib/jenkins/workspace/aten/src/TH/THGenerateAllTypes.h:10\u{1b}[m\u{1b}[K,\n                 from \u{1b}[01m\u{1b}[K/var/lib/jenkins/workspace/torch/csrc/Storage.cpp:25\u{1b}[m\u{1b}[K:\n\u{1b}[01m\u{1b}[K/var/lib/jenkins/workspace/torch/csrc/generic/StorageMethods.cpp:\u{1b}[m\u{1b}[K In function \'\u{1b}[01m\u{1b}[KPyObject* THPFloatStorage_elementSize(PyObject*, PyObject*)\u{1b}[m\u{1b}[K\':\n\u{1b}[01m\u{1b}[K/var/lib/jenkins/workspace/torch/csrc/generic/StorageMethods.cpp:54:8:\u{1b}[m\u{1b}[K \u{1b}[01;31m\u{1b}[Kerror: \u{1b}[m\u{1b}[Kunused variable \'\u{1b}[01m\u{1b}[Kself\u{1b}[m\u{1b}[K\' [\u{1b}[01;31m\u{1b}[K-Werror=unused-variable\u{1b}[m\u{1b}[K]\n   auto \u{1b}[01;31m\u{1b}[Kself\u{1b}[m\u{1b}[K = (THPStorage*)_self;\n        \u{1b}[01;31m\u{1b}[K^~~~\u{1b}[m\u{1b}[K\n\u{1b}[01m\u{1b}[K/var/lib/jenkins/workspace/torch/csrc/generic/StorageMethods.cpp:\u{1b}[m\u{1b}[K In function \'\u{1b}[01m\u{1b}[KPyObject* THPFloatStorage_new(PyObject*, PyObject*)\u{1b}[m\u{1b}[K\':\n\u{1b}[01m\u{1b}[K/var/lib/jenkins/workspace/torch/csrc/generic/StorageMethods.cpp:62:8:\u{1b}[m\u{1b}[K \u{1b}[01;31m\u{1b}[Kerror: \u{1b}[m\u{1b}[Kunused variable \'\u{1b}[01m\u{1b}[Kself\u{1b}[m\u{1b}[K\' [\u{1b}[01;31m\u{1b}[K-Werror=unused-variable\u{1b}[m\u{1b}[K]\n   auto \u{1b}[01;31m\u{1b}[Kself\u{1b}[m\u{1b}[K = (THPStorage*)_self;\n        \u{1b}[01;31m\u{1b}[K^~~~\u{1b}[m\u{1b}[K\n\u{1b}[01m\u{1b}[K/var/lib/jenkins/workspace/torch/csrc/generic/StorageMethods.cpp:\u{1b}[m\u{1b}[K In function \'\u{1b}[01m\u{1b}[KPyObject* THPFloatStorage_newWithFile(PyObject*, PyObject*)\u{1b}[m\u{1b}[K\':\n\u{1b}[01m\u{1b}[K/var/lib/jenkins/workspace/torch/csrc/generic/StorageMethods.cpp:289:13:\u{1b}[m\u{1b}[K \u{1b}[01;31m\u{1b}[Kerror: \u{1b}[m\u{1b}[Kunused variable \'\u{1b}[01m\u{1b}[Kfd_obj\u{1b}[m\u{1b}[K\' [\u{1b}[01;31m\u{1b}[K-Werror=unused-variable\u{1b}[m\u{1b}[K]\n   PyObject *\u{1b}[01;31m\u{1b}[Kfd_obj\u{1b}[m\u{1b}[K = PyTuple_GetItem(args, 0);\n             \u{1b}[01;31m\u{1b}[K^~~~~~\u{1b}[m\u{1b}[K\nIn file included from \u{1b}[01m\u{1b}[K/var/lib/jenkins/workspace/torch/csrc/generic/Storage.cpp:392:0\u{1b}[m\u{1b}[K,\n                 from \u{1b}[01m\u{1b}[Ktorch/csrc/generic/Storage.cpp:1\u{1b}[m\u{1b}[K,\n                 from \u{1b}[01m\u{1b}[K/var/lib/jenkins/workspace/aten/src/TH/THGenerateFloatTypes.h:11\u{1b}[m\u{1b}[K,\n                 from \u{1b}[01m\u{1b}[K/var/lib/jenkins/workspace/aten/src/TH/THGenerateAllTypes.h:10\u{1b}[m\u{1b}[K,\n                 from \u{1b}[01m\u{1b}[K/var/lib/jenkins/workspace/torch/csrc/Storage.cpp:25\u{1b}[m\u{1b}[K:\n\u{1b}[01m\u{1b}[K/var/lib/jenkins/workspace/torch/csrc/generic/StorageMethods.cpp:\u{1b}[m\u{1b}[K In function \'\u{1b}[01m\u{1b}[KPyObject* THPDoubleStorage_elementSize(PyObject*, PyObject*)\u{1b}[m\u{1b}[K\':\n\u{1b}[01m\u{1b}[K/var/lib/jenkins/workspace/torch/csrc/generic/StorageMethods.cpp:54:8:\u{1b}[m\u{1b}[K \u{1b}[01;31m\u{1b}[Kerror: \u{1b}[m\u{1b}[Kunused variable \'\u{1b}[01m\u{1b}[Kself\u{1b}[m\u{1b}[K\' [\u{1b}[01;31m\u{1b}[K-Werror=unused-variable\u{1b}[m\u{1b}[K]\n   auto \u{1b}[01;31m\u{1b}[Kself\u{1b}[m\u{1b}[K = (THPStorage*)_self;\n        \u{1b}[01;31m\u{1b}[K^~~~\u{1b}[m\u{1b}[K\n\u{1b}[01m\u{1b}[K/var/lib/jenkins/workspace/torch/csrc/generic/StorageMethods.cpp:\u{1b}[m\u{1b}[K In function \'\u{1b}[01m\u{1b}[KPyObject* THPDoubleStorage_new(PyObject*, PyObject*)\u{1b}[m\u{1b}[K\':\n\u{1b}[01m\u{1b}[K/var/lib/jenkins/workspace/torch/csrc/generic/StorageMethods.cpp:62:8:\u{1b}[m\u{1b}[K \u{1b}[01;31m\u{1b}[Kerror: \u{1b}[m\u{1b}[Kunused variable \'\u{1b}[01m\u{1b}[Kself\u{1b}[m\u{1b}[K\' [\u{1b}[01;31m\u{1b}[K-Werror=unused-variable\u{1b}[m\u{1b}[K]\n   auto \u{1b}[01;31m\u{1b}[Kself\u{1b}[m\u{1b}[K = (THPStorage*)_self;\n        \u{1b}[01;31m\u{1b}[K^~~~\u{1b}[m\u{1b}[K\n\u{1b}[01m\u{1b}[K/var/lib/jenkins/workspace/torch/csrc/generic/StorageMethods.cpp:\u{1b}[m\u{1b}[K In function \'\u{1b}[01m\u{1b}[KPyObject* THPDoubleStorage_newWithFile(PyObject*, PyObject*)\u{1b}[m\u{1b}[K\':\n\u{1b}[01m\u{1b}[K/var/lib/jenkins/workspace/torch/csrc/generic/StorageMethods.cpp:289:13:\u{1b}[m\u{1b}[K \u{1b}[01;31m\u{1b}[Kerror: \u{1b}[m\u{1b}[Kunused variable \'\u{1b}[01m\u{1b}[Kfd_obj\u{1b}[m\u{1b}[K\' [\u{1b}[01;31m\u{1b}[K-Werror=unused-variable\u{1b}[m\u{1b}[K]\n   PyObject *\u{1b}[01;31m\u{1b}[Kfd_obj\u{1b}[m\u{1b}[K = PyTuple_GetItem(args, 0);\n             \u{1b}[01;31m\u{1b}[K^~~~~~\u{1b}[m\u{1b}[K\nIn 
2021-10-11T20:32:26.3851926Z 
2021-10-11T20:32:26.3852498Z =========== If your build fails, please take a look at the log above for possible reasons ===========
2021-10-11T20:32:26.3853010Z Compile requests                   8644
2021-10-11T20:32:26.3853412Z Compile requests executed          6696
2021-10-11T20:32:26.3853771Z Cache hits                         6599
2021-10-11T20:32:26.3854117Z Cache hits (C/C++)                 6295

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

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

zou3519 added a commit that referenced this pull request Sep 30, 2021
OpInfos for: empty_like, zeros_like, ones_like, full_like, randn_like

Test Plan:
- run tests

ghstack-source-id: c430f65
Pull Request resolved: #65941
@zou3519 zou3519 requested review from mruberry and pmeier October 4, 2021 19:22
@zou3519
Copy link
Contributor Author

zou3519 commented Oct 4, 2021

NB: I will fix the lint whenever fb comes back up...

Copy link
Collaborator

@pmeier pmeier left a comment

Choose a reason for hiding this comment

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

Some comments inline. Otherwise LGTM when CI is green.

OpInfos for: empty_like, zeros_like, ones_like, full_like, randn_like

Test Plan:
- run tests

[ghstack-poisoned]
OpInfos for: empty_like, zeros_like, ones_like, full_like, randn_like

Test Plan:
- run tests

[ghstack-poisoned]
zou3519 added a commit that referenced this pull request Oct 6, 2021
OpInfos for: empty_like, zeros_like, ones_like, full_like, randn_like

Test Plan:
- run tests

ghstack-source-id: 55e7e6b
Pull Request resolved: #65941
@zou3519 zou3519 requested a review from pmeier October 6, 2021 15:46
'Tensor.int',
'Tensor.long',
'Tensor.short',
'empty_like',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Meta reviewer note: We should make these tests skippable like other tests instead of using custom lists.

cc @Chillee

return tuple(samples)

def sample_inputs_like_fns(self, device, dtype, requires_grad, **kwargs):
inputs: List[Tuple[Tuple, Dict]] = [
Copy link
Collaborator

Choose a reason for hiding this comment

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

Meta note: typing is lame -- did something complain this wasn't done? If so we should fix that so typing is never required in this file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, mypy complains when this annotation is removed

Copy link
Collaborator

Choose a reason for hiding this comment

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

Would you exclude this file from mypy's purview, then?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mruberry how sure are we that we should hide this file from mypy? I think typing is generally useful, but I agree that it "gets in the way" while writing OpInfos, like in this case

Copy link
Collaborator

Choose a reason for hiding this comment

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

If we don't want to go for the nuclear option, just slap a # type: ignore directive on the line.

Copy link
Collaborator

Choose a reason for hiding this comment

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

The test files are supposed to get an exception from mypy


return tuple(samples)

def sample_inputs_full_like(self, *args, **kwargs):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Cool

OpInfo('randn_like',
dtypes=floating_types_and(torch.half, torch.bfloat16, torch.complex64, torch.complex128),
op=lambda inp, *args, **kwargs:
wrapper_set_seed(torch.randn_like, inp, *args, **kwargs),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Neat

Copy link
Collaborator

@mruberry mruberry left a comment

Choose a reason for hiding this comment

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

Cool!

OpInfos for: empty_like, zeros_like, ones_like, full_like, randn_like

Test Plan:
- run tests

[ghstack-poisoned]
@zou3519
Copy link
Contributor Author

zou3519 commented Oct 6, 2021

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

OpInfos for: empty_like, zeros_like, ones_like, full_like, randn_like

Test Plan:
- run tests

Differential Revision: [D31452625](https://our.internmc.facebook.com/intern/diff/D31452625)

[ghstack-poisoned]
zou3519 added a commit that referenced this pull request Oct 6, 2021
OpInfos for: empty_like, zeros_like, ones_like, full_like, randn_like

Test Plan:
- run tests

ghstack-source-id: aee5c32
Pull Request resolved: #65941
@zou3519
Copy link
Contributor Author

zou3519 commented Oct 6, 2021

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

Copy link
Collaborator

@pmeier pmeier left a comment

Choose a reason for hiding this comment

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

I second #65941 (comment), otherwise LGTM!

OpInfos for: empty_like, zeros_like, ones_like, full_like, randn_like

Test Plan:
- run tests

Differential Revision: [D31452625](https://our.internmc.facebook.com/intern/diff/D31452625)

[ghstack-poisoned]
zou3519 added a commit that referenced this pull request Oct 7, 2021
OpInfos for: empty_like, zeros_like, ones_like, full_like, randn_like

Test Plan:
- run tests

ghstack-source-id: 87dabf1
Pull Request resolved: #65941
@zou3519
Copy link
Contributor Author

zou3519 commented Oct 7, 2021

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

OpInfos for: empty_like, zeros_like, ones_like, full_like, randn_like

Test Plan:
- run tests

Differential Revision: [D31452625](https://our.internmc.facebook.com/intern/diff/D31452625)

[ghstack-poisoned]
@zou3519
Copy link
Contributor Author

zou3519 commented Oct 9, 2021

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

OpInfos for: empty_like, zeros_like, ones_like, full_like, randn_like

Test Plan:
- run tests

Differential Revision: [D31452625](https://our.internmc.facebook.com/intern/diff/D31452625)

[ghstack-poisoned]
@zou3519
Copy link
Contributor Author

zou3519 commented Oct 9, 2021

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

OpInfos for: empty_like, zeros_like, ones_like, full_like, randn_like

Test Plan:
- run tests

Differential Revision: [D31452625](https://our.internmc.facebook.com/intern/diff/D31452625)

[ghstack-poisoned]
zou3519 added a commit that referenced this pull request Oct 9, 2021
OpInfos for: empty_like, zeros_like, ones_like, full_like, randn_like

Test Plan:
- run tests

ghstack-source-id: 1e1c090
Pull Request resolved: #65941
@zou3519
Copy link
Contributor Author

zou3519 commented Oct 9, 2021

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

OpInfos for: empty_like, zeros_like, ones_like, full_like, randn_like

Test Plan:
- run tests

Differential Revision: [D31452625](https://our.internmc.facebook.com/intern/diff/D31452625)

[ghstack-poisoned]
@zou3519
Copy link
Contributor Author

zou3519 commented Oct 11, 2021

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

@facebook-github-bot
Copy link
Contributor

@zou3519 merged this pull request in d810e73.

@facebook-github-bot facebook-github-bot deleted the gh/zou3519/385/head branch October 18, 2021 14:44
wconstab pushed a commit that referenced this pull request Oct 20, 2021
Summary:
Pull Request resolved: #65941

OpInfos for: empty_like, zeros_like, ones_like, full_like, randn_like

Test Plan: - run tests

Reviewed By: dagitses

Differential Revision: D31452625

Pulled By: zou3519

fbshipit-source-id: 5e6c45918694853f9252488d62bb7f4ccfa1f1e4
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.

4 participants