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

Method Code

tensorflow/js/ops/ts_op_gen.cc:94–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92GenTypeScriptOp::~GenTypeScriptOp() {}
93
94string GenTypeScriptOp::Code() {
95 ProcessArgs();
96 ProcessAttrs();
97
98 // Generate exported function for Op:
99 AddMethodSignature();
100 AddOpAttrs();
101 AddMethodReturnAndClose();
102
103 strings::StrAppend(&result_, "\n");
104 return result_;
105}
106
107void GenTypeScriptOp::ProcessArgs() {
108 for (int i = 0; i < api_def_.arg_order_size(); i++) {

Callers 1

WriteTSOpFunction · 0.45

Calls 1

StrAppendFunction · 0.50

Tested by

no test coverage detected