MCPcopy Create free account
hub / github.com/tensorflow/tfjs / getPreamble

Function getPreamble

tfjs/tools/custom_module/util.ts:53–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51}
52
53export function getPreamble() {
54 const preamble = `/**
55 * @license
56 * Copyright ${(new Date()).getFullYear()} Google LLC. All Rights Reserved.
57 * Licensed under the Apache License, Version 2.0 (the "License");
58 * you may not use this file except in compliance with the License.
59 * You may obtain a copy of the License at
60 *
61 * http://www.apache.org/licenses/LICENSE-2.0
62 *
63 * Unless required by applicable law or agreed to in writing, software
64 * distributed under the License is distributed on an "AS IS" BASIS,
65 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
66 * See the License for the specific language governing permissions and
67 * limitations under the License.
68 * =============================================================================
69 */
70
71// This file is autogenerated.\n
72`;
73 return preamble;
74}
75
76export function bail(errorMsg: string) {
77 console.log(chalk.red(errorMsg));

Callers 1

getCustomModuleStringFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…