Skip to content

Instantly share code, notes, and snippets.

@cpuhrsch
Created March 1, 2019 23:34
Show Gist options
  • Save cpuhrsch/ba972f121fda1e6ccb5318a8af2ab343 to your computer and use it in GitHub Desktop.
Save cpuhrsch/ba972f121fda1e6ccb5318a8af2ab343 to your computer and use it in GitHub Desktop.
diff --git a/torch/csrc/jit/generated/register_aten_ops_0.cpp b/torch/csrc/jit/generated/register_aten_ops_0.cpp
index 5a9c7d601..b8b4d86cc 100644
--- a/torch/csrc/jit/generated/register_aten_ops_0.cpp
+++ b/torch/csrc/jit/generated/register_aten_ops_0.cpp
@@ -601,7 +601,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::_sparse_coo_tensor_with_dims_and_tensors(int sparse_dim, int dense_dim, int[] size, Tensor indices, Tensor values, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::_sparse_coo_tensor_with_dims_and_tensors(int sparse_dim, int dense_dim, int[] size, Tensor indices, Tensor values, *, ScalarType dtype, Layout layout, Device device) -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("_sparse_coo_tensor_with_dims_and_tensors");
@@ -3682,7 +3682,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::blackman_window(int window_length, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::blackman_window(int window_length, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("blackman_window");
@@ -3698,7 +3698,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::blackman_window(int window_length, bool periodic, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::blackman_window(int window_length, bool periodic, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("blackman_window");
@@ -4732,7 +4732,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::full(int[] size, Scalar fill_value, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::full(int[] size, Scalar fill_value, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("full");
@@ -4763,7 +4763,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::full_like(Tensor self, Scalar fill_value, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::full_like(Tensor self, Scalar fill_value, *, ScalarType dtype, Layout layout, Device device) -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("full_like");
@@ -5392,7 +5392,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::logspace(Scalar start, Scalar end, int steps=100, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::logspace(Scalar start, Scalar end, int steps=100, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("logspace");
@@ -6554,7 +6554,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::randn_like(Tensor self, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::randn_like(Tensor self, *, ScalarType dtype, Layout layout, Device device) -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("randn_like");
@@ -6584,7 +6584,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::range(Scalar start, Scalar end, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::range(Scalar start, Scalar end, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("range");
@@ -6601,7 +6601,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::range(Scalar start, Scalar end, Scalar step=1, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::range(Scalar start, Scalar end, Scalar step=1, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("range");
diff --git a/torch/csrc/jit/generated/register_aten_ops_1.cpp b/torch/csrc/jit/generated/register_aten_ops_1.cpp
index d0e817587..827ebfe54 100644
--- a/torch/csrc/jit/generated/register_aten_ops_1.cpp
+++ b/torch/csrc/jit/generated/register_aten_ops_1.cpp
@@ -3451,7 +3451,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::arange(Scalar end, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::arange(Scalar end, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("arange");
@@ -3467,7 +3467,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::arange(Scalar start, Scalar end, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::arange(Scalar start, Scalar end, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("arange");
@@ -3484,7 +3484,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::arange(Scalar start, Scalar end, Scalar step, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::arange(Scalar start, Scalar end, Scalar step, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("arange");
@@ -4362,7 +4362,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::empty(int[] size, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::empty(int[] size, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("empty");
@@ -4391,7 +4391,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::empty_like(Tensor self, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::empty_like(Tensor self, *, ScalarType dtype, Layout layout, Device device) -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("empty_like");
@@ -4936,7 +4936,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::hann_window(int window_length, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::hann_window(int window_length, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("hann_window");
@@ -4952,7 +4952,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::hann_window(int window_length, bool periodic, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::hann_window(int window_length, bool periodic, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("hann_window");
@@ -5312,7 +5312,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::linspace(Scalar start, Scalar end, int steps=100, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::linspace(Scalar start, Scalar end, int steps=100, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("linspace");
@@ -6562,7 +6562,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::rand_like(Tensor self, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::rand_like(Tensor self, *, ScalarType dtype, Layout layout, Device device) -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("rand_like");
@@ -7846,7 +7846,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::tril_indices(int row, int col, int offset=0, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::tril_indices(int row, int col, int offset=0, ScalarType dtype=long, Layout layout=strided, Device device=\"cpu\") -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("tril_indices");
@@ -7877,7 +7877,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::triu_indices(int row, int col, int offset=0, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::triu_indices(int row, int col, int offset=0, ScalarType dtype=long, Layout layout=strided, Device device=\"cpu\") -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("triu_indices");
diff --git a/torch/csrc/jit/generated/register_aten_ops_2.cpp b/torch/csrc/jit/generated/register_aten_ops_2.cpp
index 332899d25..4785f7051 100644
--- a/torch/csrc/jit/generated/register_aten_ops_2.cpp
+++ b/torch/csrc/jit/generated/register_aten_ops_2.cpp
@@ -272,7 +272,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::_cudnn_init_dropout_state(float dropout, bool train, int dropout_seed, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::_cudnn_init_dropout_state(float dropout, bool train, int dropout_seed, ScalarType dtype, Layout layout, Device device) -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("_cudnn_init_dropout_state");
@@ -492,7 +492,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::_sparse_coo_tensor_with_dims(int sparse_dim, int dense_dim, int[] size, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::_sparse_coo_tensor_with_dims(int sparse_dim, int dense_dim, int[] size, *, ScalarType dtype, Layout layout, Device device) -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("_sparse_coo_tensor_with_dims");
@@ -3503,7 +3503,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::bartlett_window(int window_length, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::bartlett_window(int window_length, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("bartlett_window");
@@ -3519,7 +3519,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::bartlett_window(int window_length, bool periodic, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::bartlett_window(int window_length, bool periodic, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("bartlett_window");
@@ -4268,7 +4268,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::eye(int n, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::eye(int n, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("eye");
@@ -4284,7 +4284,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::eye(int n, int m, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::eye(int n, int m, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("eye");
@@ -4619,7 +4619,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::hamming_window(int window_length, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::hamming_window(int window_length, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("hamming_window");
@@ -4635,7 +4635,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::hamming_window(int window_length, bool periodic, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::hamming_window(int window_length, bool periodic, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("hamming_window");
@@ -4652,7 +4652,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::hamming_window(int window_length, bool periodic, float alpha, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::hamming_window(int window_length, bool periodic, float alpha, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("hamming_window");
@@ -4670,7 +4670,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::hamming_window(int window_length, bool periodic, float alpha, float beta, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::hamming_window(int window_length, bool periodic, float alpha, float beta, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("hamming_window");
@@ -5923,7 +5923,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::ones(int[] size, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::ones(int[] size, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("ones");
@@ -5952,7 +5952,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::ones_like(Tensor self, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::ones_like(Tensor self, *, ScalarType dtype, Layout layout, Device device) -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("ones_like");
@@ -6270,7 +6270,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::randint_like(Tensor self, int high, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::randint_like(Tensor self, int high, *, ScalarType dtype, Layout layout, Device device) -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("randint_like");
@@ -6287,7 +6287,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::randint_like(Tensor self, int low, int high, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::randint_like(Tensor self, int low, int high, *, ScalarType dtype, Layout layout, Device device) -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("randint_like");
@@ -6919,7 +6919,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::sparse_coo_tensor(int[] size, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::sparse_coo_tensor(int[] size, *, ScalarType dtype, Layout layout, Device device) -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("sparse_coo_tensor");
@@ -7525,7 +7525,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::to(Tensor self, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\", bool non_blocking=False, bool copy=False) -> Tensor",
+ "aten::to(Tensor self, ScalarType dtype, Layout layout, Device device, bool non_blocking=False, bool copy=False) -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("to");
@@ -7857,7 +7857,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::zeros(int[] size, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::zeros(int[] size, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("zeros");
@@ -7886,7 +7886,7 @@ RegisterOperators reg({
}
),
Operator(
- "aten::zeros_like(Tensor self, *, ScalarType dtype=float, Layout layout=strided, Device device=\"cpu\") -> Tensor",
+ "aten::zeros_like(Tensor self, *, ScalarType dtype, Layout layout, Device device) -> Tensor",
[](Stack & stack) {
autograd::profiler::RecordFunction record("zeros_like");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment