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

Function TEST

tensorflow/js/ops/ts_op_gen_test.cc:103–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103TEST(TsOpGenTest, TestImports) {
104 string ts_file_text;
105 GenerateTsOpFileText("", "", &ts_file_text);
106
107 const string expected = R"(
108import * as tfc from '@tensorflow/tfjs-core';
109import {createTensorsTypeOpAttr, nodeBackend} from './op_utils';
110)";
111 ExpectContainsStr(ts_file_text, expected);
112}
113
114TEST(TsOpGenTest, InputSingleAndList) {
115 const string api_def = R"pb(

Callers

nothing calls this directly

Calls 3

GenerateTsOpFileTextFunction · 0.85
ExpectContainsStrFunction · 0.85
ExpectDoesNotContainStrFunction · 0.85

Tested by

no test coverage detected