Repository navigation
VMLA Dynamic Iota support with Shape dialect work. - #2965
Conversation
There was a problem hiding this comment.
Keeping the files in the same structure makes it easier when hopping across them. iota fits into the same category as broadcast/tile/etc and should live in a consistent place next to those (so following tile in all files, like vmla.imports.mlir, vmlaops.td, op_kernels, vmla_module.cc, etc).
silvasean
left a comment
There was a problem hiding this comment.
Awesome work Rob! This is super clean!
| tf.TensorSpec([], tf.float32) | ||
| ]) | ||
| def range(self, start, stop): | ||
| delta = np.array(3, dtype=np.float32) |
There was a problem hiding this comment.
Is there a reason this is inside as a constant? Can you comment it?
There was a problem hiding this comment.
Nope, just from the original copied test. Moved out of the function.
| if (shapedType && shapedType.hasRank() && rsType) { | ||
| if (!shapedType.getShape().equals(rsType.getAllDims())) { | ||
| return op.emitOpError("dims must match between tensor and shape"); | ||
| for (auto it : llvm::zip(shapedType.getShape(), rsType.getAllDims())) { |
There was a problem hiding this comment.
Can we use mlir's verifyCompatibleShapes?
also, can you add a test?
There was a problem hiding this comment.
Verify compatible shapes didn't appear to work. Added the test though.
* f0a07f6 Allow iree.placeholder as an op between splittable ops. (#2999) * 6bd3b1d Use hidden visibility for all symbols by default (#2997) * d650082 VMLA Dynamic Iota support with Shape dialect work. (#2965) * c724ee4 Add function to hide SavedModel roundtrip (#2995) * 2fedce6 Merge pull request #2996 * c5f7030 Merge branch 'main' into google-to-main * cf3211d [vulkan] Reset TimePointFence status when releasing back to pool (#2905) * ebc6a83 Add lint action to check for tabs (#2984) * 932339c Merge pull request #2964 from silvasean/add-dynamic-dot-example * df727ae Integrate MLIR-EmitC at iml130/mlir-emitc@560cd8c (#2990) * e824d36 Refactor for explicit dialect registration (#2978) * 38b7d2c Allow ModelRunner to receive an array of extra symbols available during JITing.. * 264a97d Fuse linalg.tensor_reshape operations with hal.interface* operations. (#2973) * 0e3c737 Fold flow.tensor.update when all operands are constant (#2982) * c7a21c2 Merge pull request #2983 from rsuderman/google-to-main * fd55a86 Add a dynamically shaped mhlo.dot lowering example COPYBARA_INTEGRATE_REVIEW=#3003 from rsuderman:main-to-google f0a07f6 PiperOrigin-RevId: 328574119
* 6282700 Expand the tf_module_to_compiler_module API (#3009) * f7e561a Merge pull request #3006 from rsuderman/google-to-main * 8341d71 Explicitly insert dialects in conversion passes (#3002) * b7c2b60 Fix format by changing to LLVM style (#3008) * 4286f17 Merge branch 'main' into google-to-main * f0a07f6 Allow iree.placeholder as an op between splittable ops. (#2999) * 6bd3b1d Use hidden visibility for all symbols by default (#2997) * d650082 VMLA Dynamic Iota support with Shape dialect work. (#2965) * c724ee4 Add function to hide SavedModel roundtrip (#2995) * 2fedce6 Merge pull request #2996 * c5f7030 Merge branch 'main' into google-to-main * cf3211d [vulkan] Reset TimePointFence status when releasing back to pool (#2905) * ebc6a83 Add lint action to check for tabs (#2984) * 932339c Merge pull request #2964 from silvasean/add-dynamic-dot-example * df727ae Integrate MLIR-EmitC at iml130/mlir-emitc@560cd8c (#2990) * e824d36 Refactor for explicit dialect registration (#2978) * 38b7d2c Allow ModelRunner to receive an array of extra symbols available during JITing.. * 264a97d Fuse linalg.tensor_reshape operations with hal.interface* operations. (#2973) * 0e3c737 Fold flow.tensor.update when all operands are constant (#2982) * c7a21c2 Merge pull request #2983 from rsuderman/google-to-main * fd55a86 Add a dynamically shaped mhlo.dot lowering example COPYBARA_INTEGRATE_REVIEW=#3012 from rsuderman:main-to-google 6282700 PiperOrigin-RevId: 328632208
* aa8d1c0 Enable simple.mlir test for iree-benchmark-module on vulkan (#3016) * 6db4e7b [vulkan] Release timepoint fences more aggressively when possible (#2800) * a1365d3 [vulkan] Do not request timeline semaphore if not available (#2904) * a38c890 Add more type support to model builder matmul benchmark. (#2977) * a293ca7 Fix hyperlink to getting started docs on python page. (#3015) * b022e70 Release inputs before closing the session. (#3004) * f1678df Dynamicly register benchmark for entry_function with name BM_{entry_function} .. * 6282700 Expand the tf_module_to_compiler_module API (#3009) * f7e561a Merge pull request #3006 from rsuderman/google-to-main * 8341d71 Explicitly insert dialects in conversion passes (#3002) * b7c2b60 Fix format by changing to LLVM style (#3008) * 4286f17 Merge branch 'main' into google-to-main * f0a07f6 Allow iree.placeholder as an op between splittable ops. (#2999) * 6bd3b1d Use hidden visibility for all symbols by default (#2997) * d650082 VMLA Dynamic Iota support with Shape dialect work. (#2965) * c724ee4 Add function to hide SavedModel roundtrip (#2995) * 2fedce6 Merge pull request #2996 * c5f7030 Merge branch 'main' into google-to-main * cf3211d [vulkan] Reset TimePointFence status when releasing back to pool (#2905) * ebc6a83 Add lint action to check for tabs (#2984) * 932339c Merge pull request #2964 from silvasean/add-dynamic-dot-example * df727ae Integrate MLIR-EmitC at iml130/mlir-emitc@560cd8c (#2990) * e824d36 Refactor for explicit dialect registration (#2978) * 38b7d2c Allow ModelRunner to receive an array of extra symbols available during JITing.. * 264a97d Fuse linalg.tensor_reshape operations with hal.interface* operations. (#2973) * 0e3c737 Fold flow.tensor.update when all operands are constant (#2982) * c7a21c2 Merge pull request #2983 from rsuderman/google-to-main * fd55a86 Add a dynamically shaped mhlo.dot lowering example COPYBARA_INTEGRATE_REVIEW=#3018 from rsuderman:main-to-google 4a9ea02 PiperOrigin-RevId: 328784816
* 0c97a1c Merge pull request #3022 from rsuderman/google-to-main * bf264f4 Merge branch 'main' into google-to-main * 8524cb9 Split LLVM targets into subfolders to support CMake filtering. (#2960) * 6e78211 Fixed Emulator Timeline Semaphore parameter name (#3019) * aa8d1c0 Enable simple.mlir test for iree-benchmark-module on vulkan (#3016) * 6db4e7b [vulkan] Release timepoint fences more aggressively when possible (#2800) * a1365d3 [vulkan] Do not request timeline semaphore if not available (#2904) * a38c890 Add more type support to model builder matmul benchmark. (#2977) * a293ca7 Fix hyperlink to getting started docs on python page. (#3015) * b022e70 Release inputs before closing the session. (#3004) * f1678df Dynamicly register benchmark for entry_function with name BM_{entry_function} .. * 6282700 Expand the tf_module_to_compiler_module API (#3009) * f7e561a Merge pull request #3006 from rsuderman/google-to-main * 8341d71 Explicitly insert dialects in conversion passes (#3002) * b7c2b60 Fix format by changing to LLVM style (#3008) * 4286f17 Merge branch 'main' into google-to-main * f0a07f6 Allow iree.placeholder as an op between splittable ops. (#2999) * 6bd3b1d Use hidden visibility for all symbols by default (#2997) * d650082 VMLA Dynamic Iota support with Shape dialect work. (#2965) * c724ee4 Add function to hide SavedModel roundtrip (#2995) * 2fedce6 Merge pull request #2996 * c5f7030 Merge branch 'main' into google-to-main * cf3211d [vulkan] Reset TimePointFence status when releasing back to pool (#2905) * ebc6a83 Add lint action to check for tabs (#2984) * 932339c Merge pull request #2964 from silvasean/add-dynamic-dot-example * df727ae Integrate MLIR-EmitC at iml130/mlir-emitc@560cd8c (#2990) * e824d36 Refactor for explicit dialect registration (#2978) * 38b7d2c Allow ModelRunner to receive an array of extra symbols available during JITing.. * 264a97d Fuse linalg.tensor_reshape operations with hal.interface* operations. (#2973) * 0e3c737 Fold flow.tensor.update when all operands are constant (#2982) * c7a21c2 Merge pull request #2983 from rsuderman/google-to-main * fd55a86 Add a dynamically shaped mhlo.dot lowering example COPYBARA_INTEGRATE_REVIEW=#3025 from rsuderman:main-to-google 0c97a1c PiperOrigin-RevId: 328804964
Updated the VMLA HAL module to support Dynamic iota, along with a corresponding range test.
This includes some changes to the IREE Shapex dialect to handle dynamic tests with a corresponding broadcast_to test.