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

Method MakeTensor

tensorflow/c/tf_tensor_internal.h:38–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 public:
37 static TensorBuffer* Buffer(const Tensor& tensor) { return tensor.buf_; }
38 static Tensor MakeTensor(TF_DataType type, const TensorShape& shape,
39 TensorBuffer* buf) {
40 return Tensor(static_cast<DataType>(type), shape, buf);
41 }
42};
43
44// Allocates tensor data buffer using specified allocator.

Callers

nothing calls this directly

Calls 1

TensorClass · 0.50

Tested by

no test coverage detected