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

Method Output

tensorflow/core/kernels/bcast_ops.cc:57–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56 private:
57 void Output(OpKernelContext* ctx, int idx, const BCast::Vec& v) {
58 const int64 len = v.size();
59 Tensor* o = nullptr;
60 OP_REQUIRES_OK(ctx, ctx->allocate_output(idx, TensorShape({len}), &o));
61 for (int64 i = 0; i < len; ++i) {
62 o->flat<T>()(i) = static_cast<T>(v[i]);
63 }
64 }
65
66 TF_DISALLOW_COPY_AND_ASSIGN(BCastArgsOp);
67};

Callers 15

mpi_ops.ccFile · 0.45
mpi_ops.ccFile · 0.45
array_ops.ccFile · 0.45
variable_ops.ccFile · 0.45
image_ops.ccFile · 0.45
dataset_ops.ccFile · 0.45
model_ops.ccFile · 0.45

Calls 3

allocate_outputMethod · 0.80
TensorShapeClass · 0.50
sizeMethod · 0.45

Tested by 9

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
MakeOpDefFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
MakeOpDefWithListsFunction · 0.36
MakeOpDefFunction · 0.36
TESTFunction · 0.36