We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c6e463 commit 54af621Copy full SHA for 54af621
projects/ltc/csrc/base_lazy_backend/shape_inference.cpp
@@ -513,6 +513,13 @@ std::vector<torch::lazy::Shape> compute_shape_scalar_tensor(
513
return {Shape(dtype.value_or(s.type()), c10::ArrayRef<int64_t>{})};
514
}
515
516
+std::vector<torch::lazy::Shape>
517
+compute_shape_as_strided(const at::Tensor &self, at::IntArrayRef size,
518
+ at::IntArrayRef stride,
519
+ c10::optional<int64_t> storage_offset) {
520
+ return {Shape(self.scalar_type(), size.vec())};
521
+}
522
+
523
std::vector<torch::lazy::Shape> compute_shape_roll(const at::Tensor &self,
524
at::IntArrayRef shifts,
525
at::IntArrayRef dims) {
0 commit comments