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

Function CreateTensor

tensorflow/lite/testing/tf_driver.cc:31–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29namespace {
30
31tensorflow::Tensor CreateTensor(const tensorflow::DataType type,
32 const std::vector<int64_t>& dim) {
33 tensorflow::TensorShape shape{tensorflow::gtl::ArraySlice<tensorflow::int64>{
34 reinterpret_cast<const tensorflow::int64*>(dim.data()), dim.size()}};
35 return {type, shape};
36}
37
38template <typename T>
39int FillTensorWithData(tensorflow::Tensor* tensor,

Callers 9

SetInputMethod · 0.70
ReshapeTensorMethod · 0.70
TEST_FFunction · 0.50
AddTensorMethod · 0.50
ExportTensorsFunction · 0.50
BuildTensorsMethod · 0.50
ToFlatBufferAndBackFunction · 0.50
TESTFunction · 0.50

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by 6

TEST_FFunction · 0.40
AddTensorMethod · 0.40
BuildTensorsMethod · 0.40
ToFlatBufferAndBackFunction · 0.40
TESTFunction · 0.40