Nightclub Party Music

    @tensorflow/tfjs-backend-cpu
    TypeScript icon, indicating that this package has built-in type declarations

    3.18.0 • Public • Published

    Usage

    This package implements a JavaScript based CPU backend to TensorFlow.js.

    Importing the backend

    Note: this backend is included by default in @tensorflow/tfjs.

    Via NPM

    // Import @tensorflow/tfjs-core
    import * as tf from '@tensorflow/tfjs-core';
    // Adds the CPU backend to the global backend registry.
    import '@tensorflow/tfjs-backend-cpu';

    Via a script tag

    <!-- Import @tensorflow/tfjs-core -->
    <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-core"></script>
    
    <!-- Adds the CPU backend to the global backend registry -->
    <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-cpu"></script>

    You can also get ES2017 code using the following links

    <!-- Import @tensorflow/tfjs-core -->
    <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-core@2.0.0-rc.4/dist/tf-core.es2017.js"></script>
    
    <!-- Adds the CPU backend to the global backend registry -->
    <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-cpu@2.0.0-rc.4/dist/tf-backend-cpu.es2017.js"></script>

    Keywords

    none

    Install

    npm i @tensorflow/tfjs-backend-cpu

    DownloadsWeekly Downloads

    94,787

    Version

    3.18.0

    License

    Apache-2.0

    Unpacked Size

    9.48 MB

    Total Files

    424

    Last publish

    Collaborators

    • pyu10055
    • dsmilkov
    • nsthorat
    • tafsiri
    • caisq
    • annxingyuan
    • kangyizhang
    • linazhao128
    • mattsoulanille
    • jinjingforever
    • ahmedsabie