UNPKG

@tensorflow/tfjs-core

Version:

Hardware-accelerated JavaScript library for machine intelligence

15 lines (14 loc) 530 B
import { Platform } from './platform'; export declare const getNodeFetch: { importFetch: () => any; }; export declare let systemFetch: (url: string, init?: RequestInit) => Promise<Response>; export declare class PlatformNode implements Platform { private textEncoder; util: any; constructor(); fetch(path: string, requestInits?: RequestInit): Promise<Response>; now(): number; encode(text: string, encoding: string): Uint8Array; decode(bytes: Uint8Array, encoding: string): string; }