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

Function CreateTestFile

tensorflow/core/platform/env_test.cc:36–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34namespace {
35
36string CreateTestFile(Env* env, const string& filename, int length) {
37 string input(length, 0);
38 for (int i = 0; i < length; i++) input[i] = i;
39 TF_CHECK_OK(WriteStringToFile(env, filename, input));
40 return input;
41}
42
43GraphDef CreateTestProto() {
44 GraphDef g;

Callers 1

TEST_FFunction · 0.85

Calls 1

WriteStringToFileFunction · 0.85

Tested by

no test coverage detected