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:
A. Unique TensorFlower 2020-03-18 14:38:13 -07:00 committed by TensorFlower Gardener
parent 5b00c31c4b
commit bfafc1acef
2 changed files with 6 additions and 0 deletions

View File

@ -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())) {

View File

@ -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.