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

Function BoolTensor

tensorflow/c/c_test_util.cc:45–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45TF_Tensor* BoolTensor(bool v) {
46 const int num_bytes = sizeof(bool);
47 bool* values = new bool[1];
48 values[0] = v;
49 return TF_NewTensor(TF_BOOL, nullptr, 0, values, num_bytes, &BoolDeallocator,
50 nullptr);
51}
52
53TF_Tensor* Int8Tensor(const int64_t* dims, int num_dims, const char* values) {
54 int64_t num_values = 1;

Callers 1

ScalarConstFunction · 0.85

Calls 1

TF_NewTensorFunction · 0.85

Tested by

no test coverage detected