Archived
builder: narrow an f32 source to a bf16 declaration at load
The builder accepted one conversion direction beyond the exact widening it already did: a single-plane RAD_F32 source declared RAD_BF16 is rounded to nearest even at load (WeightInfo::narrow, beside widen). It is staged like a widened weight, never read in place from the container, and the planner and oracle treat it as 'not the container's stored bytes'. build_test covers the declaration, the stored dtype and size, and that it is not file-direct.
This commit is contained in:
1 parent
fd40bb430c
commit
6c33ee4e12
6 files changed
+79
-32
No files matched your search
@@ -385,7 +385,7 @@ bool Ctx::oracle_unrelayout(rad_op h, const IssuePlan& hip, const IssuePlan& dip
|
||||
w.layout_tag.c_str(), ki->unrelayout ? "RadShapeFn" : "RadUnrelayoutFn");
|
||||
return false;
|
||||
}
|
||||
if (!o.tab[i] && hk && !w.widen) {
|
||||
if (!o.tab[i] && hk && !w.widen && !w.narrow) {
|
||||
RadTensor pt[RAD_ENC_MAX_PLANES];
|
||||
weight_planes(w, pt);
|
||||
RadLayout hl{};
|
||||
|
||||
Reference in new issue
Block a user