MCPcopy
hub / github.com/tensorflow/tfjs / fetch

Function fetch

tfjs-core/src/util.ts:105–108  ·  view source on GitHub ↗
(
    path: string, requestInits?: RequestInit)

Source from the content-addressed store, hash-verified

103 * @doc {heading: 'Util'}
104 */
105export function fetch(
106 path: string, requestInits?: RequestInit): Promise<Response> {
107 return env().platform.fetch(path, requestInits);
108}
109
110/**
111 * Encodes the provided string into bytes using the provided encoding scheme.

Callers 14

loadMethod · 0.50
loadMethod · 0.50
getDataForFilesFunction · 0.50
sendChatMsgFunction · 0.50
fetchMethod · 0.50
fetchImageFunction · 0.50
loadModelGoldenFunction · 0.50
convert_predict.tsFile · 0.50

Calls 2

envFunction · 0.90
fetchMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…