[PATCH] D86407: [MLInliner] bugfix for tensor type name: float -> float32
Yundi Qian via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 22 14:29:04 PDT 2020
yundiqian created this revision.
yundiqian added reviewers: mtrofin, ebrevdo, davidxl.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
yundiqian requested review of this revision.
fix the bug that tensor type float is called float32 instead of float
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D86407
Files:
llvm/include/llvm/Analysis/Utils/TFUtils.h
Index: llvm/include/llvm/Analysis/Utils/TFUtils.h
===================================================================
--- llvm/include/llvm/Analysis/Utils/TFUtils.h
+++ llvm/include/llvm/Analysis/Utils/TFUtils.h
@@ -157,10 +157,10 @@
/// List of supported types, as a triple:
/// C++ type
-/// short name (for strings, for instance)
+/// TF tensor type string
/// capitalized short name (for enums, for instance)
#define TFUTILS_SUPPORTED_TYPES(M) \
- M(float, float, FLOAT) \
+ M(float, float32, FLOAT) \
M(double, double, DOUBLE) \
M(int8_t, int8, INT8) \
M(uint8_t, uint8, UINT8) \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86407.287220.patch
Type: text/x-patch
Size: 909 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200822/fa71172a/attachment.bin>
More information about the llvm-commits
mailing list