don't trace arguments (include tensor shapes and op attributes used for cost analysis) for dataset ops.
PiperOrigin-RevId: 301671357 Change-Id: I4cf44855603ea26007a9652d6c01866db4d83c5b
This commit is contained in:
parent
5b00c31c4b
commit
bfafc1acef
@ -508,6 +508,10 @@ void DatasetOpKernel::Compute(OpKernelContext* ctx) {
|
||||
}
|
||||
}
|
||||
|
||||
string DatasetOpKernel::TraceString(OpKernelContext* ctx, bool verbose) {
|
||||
return strings::StrCat(name_view(), ":", type_string_view());
|
||||
}
|
||||
|
||||
// static
|
||||
bool DatasetOpKernel::IsDatasetOp(const OpDef* op_def) {
|
||||
if (DatasetOpRegistry::IsRegistered(op_def->name())) {
|
||||
|
@ -1073,6 +1073,8 @@ class DatasetOpKernel : public OpKernel {
|
||||
// the `DatasetOpKernel` class.
|
||||
static bool IsDatasetOp(const OpDef* op_def);
|
||||
|
||||
string TraceString(OpKernelContext* ctx, bool verbose) override;
|
||||
|
||||
protected:
|
||||
// Subclasses should implement this method. It will be called during Compute
|
||||
// execution.
|
||||
|
Loading…
x
Reference in New Issue
Block a user