Repository navigation
Fix missing f-string - #4150
Fix missing f-string#4150
Conversation
|
hmm, I think this breaks |
This reverts commit 0590b3c.
Ah, I need to wrap the driver in |
This reverts commit 0590b3c. Error when running test: ``` File "/usr/local/google/home/laurenzo/src/iree-build/bindings/python/pyiree/rt/system_api.py", line 88, in _create_default_iree_driver print(f"Created IREE driver {driver_name}: {driver:!r}", file=sys.stderr) TypeError: unsupported format string passed to pyiree.rt.binding.HalDriver.__format__ ```
|
I rolled back the commit out of band (independently hit and then found this discussion): d889ac1 |
|
Thanks. Do you have any idea why |
|
I have to admit that I am just learning to use the new f-string stuff as
well. I believe that for f-strings, what goes in the braces is a python
expression; whereas for the str.format() strings it is the special
format-string-dsl. Yes, a sharp edge indeed.
…On Wed, Dec 9, 2020 at 11:16 AM Phoenix Meadowlark ***@***.***> wrote:
Thanks. Do you have any idea why f"{thing_to_repr:!r}" isn't always
identical to f"{repr(thing_to_repr)}"? The latter works here (as did "%r"
% (thing_to_repr,)). Seems like a sharp edge to have in the language.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4150 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADYVAARMGOZLBI2L42SNADST7EH5ANCNFSM4UT3WVVQ>
.
|
|
I've only ever seen in in the python bindings (though I don't use |
* 1b71cac Adding hal.interface.workgroup.* ops. (#4149) * 04b7c37 Add ctests for the tensorflow/e2e directory. * c3fc9a1 Remove all !r from python f-strings (#4157) * fdb88b9 improve tracy docs (#4117) * 204f652 Write the doc page on profiling cpu events (#4126) * 613efa8 Add build instructions to python getting started (#4153) * d889ac1 Revert "Fix missing f-string (#4150)" * aaa08b1 Enable dylib-llvm-aot tests and switch from testing JIT to AOT. (#3928) * cb1e46e Refactor and normalization of mhlo convolutions (#4113) * 0590b3c Fix missing f-string (#4150) * 2f7cab5 Check in BuildKite pipeline for android tests (#4137) * c195ae9 Fix types for std::min on MSVC. (#4148) * 5fefe30 Integrate MLIR-EmitC at iml130/mlir-emitc@a438d3b (#4145) * f03307d Fix ImGui function in iree-run-module-vulkan-gui-main. (#4147) COPYBARA_INTEGRATE_REVIEW=#4168 from hanhanW:main-to-google 7c443d3 PiperOrigin-RevId: 346812805
* 1b71cac Adding hal.interface.workgroup.* ops. (#4149) * 04b7c37 Add ctests for the tensorflow/e2e directory. * c3fc9a1 Remove all !r from python f-strings (#4157) * fdb88b9 improve tracy docs (#4117) * 204f652 Write the doc page on profiling cpu events (#4126) * 613efa8 Add build instructions to python getting started (#4153) * d889ac1 Revert "Fix missing f-string (#4150)" * aaa08b1 Enable dylib-llvm-aot tests and switch from testing JIT to AOT. (#3928) * cb1e46e Refactor and normalization of mhlo convolutions (#4113) * 0590b3c Fix missing f-string (#4150) * 2f7cab5 Check in BuildKite pipeline for android tests (#4137) * c195ae9 Fix types for std::min on MSVC. (#4148) * 5fefe30 Integrate MLIR-EmitC at iml130/mlir-emitc@a438d3b (#4145) * f03307d Fix ImGui function in iree-run-module-vulkan-gui-main. (#4147) COPYBARA_INTEGRATE_REVIEW=#4168 from hanhanW:main-to-google 7c443d3 PiperOrigin-RevId: 346812805
No description provided.