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
AT_CHECK(!values.is_sparse(), "expected values to be a dense tensor, but got values of layout ", values.layout());
90
90
91
91
AT_CHECK(values.type().toSparse() == legacyTensorType(*this), "values type must match sparse tensor type");
92
-
AT_CHECK(indices.type().scalarType() == kLong, "indices must be an int64 tensor");
92
+
AT_CHECK(indices.scalar_type() == kLong, "indices must be an int64 tensor");
93
93
AT_CHECK(indices.type().backend() == values.type().backend(), "backend of indices (", indices.type().backend(), ") must match backend of values (", values.type().backend(), ")");
94
94
AT_CHECK(!indices.is_cuda() || indices.get_device() == values.get_device(), "device of indices (", indices.get_device(), ") must match device of values (", values.get_device(), ")");
0 commit comments