shapeless compile in docs and partially shapeless reshape (#1742)

This commit is contained in:
Awni Hannun
2025-01-02 16:24:42 -08:00
committed by GitHub
parent a64a8dfe45
commit ae69cb15e9
6 changed files with 137 additions and 36 deletions

View File

@@ -1746,6 +1746,8 @@ class Reshape : public UnaryPrimitive {
std::vector<int> state() const {
return shape_;
};
static Shape output_shape(const array& input, Shape shape);
std::vector<Shape> output_shapes(const std::vector<array>& inputs) override;
private:
Shape shape_;