Lines Matching defs:newShape
32 ArrayRef<int64_t> newShape) {
34 if (!newShape.empty())
49 ArrayRef<int64_t> newShape) {
52 if (newShape.empty())
60 auto resultShape = llvm::map_to_vector(newShape, [&](int64_t size) -> int64_t {
70 // Calculate the product of all elements in 'newShape' except for the -1
73 newShape.begin(), newShape.end(), 1, std::multiplies<int64_t>());
75 // If there is a 0 component in 'newShape', resolve the placeholder as 0.
238 auto newShape = reshape.getNewShape();
241 auto inputType = inferReshapeInputType(input, newShape);
242 auto expandedType = inferReshapeExpandedType(inputType, newShape);