You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Pull Request resolved: #26130
Since we now just use TensorTypeId::VariableTensorId, there's no need to treat autograd kernels any differently.
ghstack-source-id: 90130457
Test Plan: unit tests
Differential Revision: D17353873
fbshipit-source-id: d4468506a5366bc5e7429144b090b3e78af9de62
TORCH_CHECK(nullptr != unboxed_autograd_kernel, "Tried to call Dispatcher::callUnboxedAutogradKernel() for operator ", toString(op.schema()), " that doesn't have an autograd kernel.");
Copy file name to clipboardExpand all lines: aten/src/ATen/core/op_registration/op_registration.h
+2-22Lines changed: 2 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,6 @@ class CAFFE2_API RegisterOperators final {
96
96
TORCH_CHECK(!legacyATenSchema_.has_value(), "Tried to register operator ", schemaOrName," but specified schema multiple times. You can only specify the schema once per operator registration.");
97
97
98
98
if (Options::op_is_still_on_aten_dispatcher_(schemaOrName.c_str())) {
99
-
TORCH_CHECK(unboxedAutogradKernel_ == nullptr, "For legacy aten ops, the schema() call must happen before any kernel() calls. Operator was ", schemaOrName);
100
99
TORCH_CHECK(kernels.size() == 0, "For legacy aten ops, the schema() call must happen before any kernel() calls. Operator was ", schemaOrName);
101
100
legacyATenSchema_ = schemaOrName;
102
101
} else {
@@ -353,24 +352,6 @@ class CAFFE2_API RegisterOperators final {
0 commit comments