Added SringFormat to generated ops.
PiperOrigin-RevId: 304686409 Change-Id: I04d974243f640437d416d011a1d4162d45676063
This commit is contained in:
parent
850ae50ab4
commit
512e26cfb1
@ -7737,6 +7737,28 @@ shape of `StridedSlice`'s `input`.
|
||||
}];
|
||||
}
|
||||
|
||||
def TF_StringFormatOp : TF_Op<"StringFormat", [NoSideEffect]> {
|
||||
let summary = "Formats a string template using a list of tensors.";
|
||||
|
||||
let description = [{
|
||||
Formats a string template using a list of tensors, pretty-printing tensor summaries.
|
||||
}];
|
||||
|
||||
let arguments = (ins
|
||||
Variadic<TF_Tensor>:$inputs,
|
||||
|
||||
DefaultValuedAttr<StrAttr, "%s">:$strtemplate,
|
||||
DefaultValuedAttr<StrAttr, "%s">:$placeholder,
|
||||
DefaultValuedAttr<I64Attr, "3">:$summarize
|
||||
);
|
||||
|
||||
let results = (outs
|
||||
TF_StrTensor:$output
|
||||
);
|
||||
|
||||
TF_DerivedOperandTypeListAttr T = TF_DerivedOperandTypeListAttr<0>;
|
||||
}
|
||||
|
||||
def TF_SubOp : TF_Op<"Sub", [NoSideEffect, ResultsBroadcastableShape]>,
|
||||
WithBroadcastableBinOpBuilder {
|
||||
let summary = "Returns x - y element-wise.";
|
||||
|
Loading…
Reference in New Issue
Block a user