MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Compute

Method Compute

tensorflow/core/framework/dataset.cc:411–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409}
410
411void DatasetOpKernel::Compute(OpKernelContext* ctx) {
412 DatasetBase* dataset = nullptr;
413 MakeDataset(ctx, &dataset);
414 if (ctx->status().ok()) {
415 Tensor* output = nullptr;
416 OP_REQUIRES_OK(ctx, ctx->allocate_output(0, TensorShape({}), &output));
417 OP_REQUIRES_OK(ctx, StoreDatasetInVariantTensor(dataset, output));
418 }
419}
420
421void UnaryDatasetOpKernel::MakeDataset(OpKernelContext* ctx,
422 DatasetBase** output) {

Callers 1

RunOpKernelMethod · 0.45

Calls 5

allocate_outputMethod · 0.80
TensorShapeClass · 0.70
okMethod · 0.45
statusMethod · 0.45

Tested by 1

RunOpKernelMethod · 0.36