gx
chenyc
2025-02-12 ea42ff3ebee1eeb3fb29423aa848a249441db81c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
  "name": "@tensorflow/tfjs-core",
  "version": "4.15.0",
  "description": "Hardware-accelerated JavaScript library for machine intelligence",
  "private": false,
  "main": "dist/tf-core.node.js",
  "jsdelivr": "dist/tf-core.min.js",
  "unpkg": "dist/tf-core.min.js",
  "types": "dist/index.d.ts",
  "jsnext:main": "dist/index.js",
  "module": "dist/index.js",
  "miniprogram": "dist/miniprogram",
  "engines": {
    "yarn": ">= 1.3.2"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/tensorflow/tfjs.git",
    "directory": "tfjs-core"
  },
  "license": "Apache-2.0",
  "devDependencies": {
    "@bazel/bazelisk": "^1.12.0",
    "@bazel/ibazel": "^0.16.2"
  },
  "scripts": {
    "build": "bazel build :tfjs-core_pkg",
    "publish-npm": "bazel run :tfjs-core_pkg.publish",
    "coverage": "bazel coverage :tfjs-core_node_test",
    "test": "bazel test :tests --test_output=all",
    "test-dev": "ibazel test :tests --test_output=all",
    "test-browser": "bazel test :tfjs-core_test --test_output=streamed",
    "test-browser-debug": "bazel run :tfjs-core_test --test_output=streamed",
    "test-node": "bazel test :tfjs-core_node_test --test_output=streamed",
    "test-node-debug": "bazel run :tfjs-core_node_test --config=debug --test_output=streamed",
    "test-async-backends": "bazel test :tfjs-core_async_backends_test --test_output=streamed",
    "test-snippets": "bazel test :test_snippets_test --test_output=streamed"
  },
  "dependencies": {
    "@types/long": "^4.0.1",
    "@types/offscreencanvas": "~2019.7.0",
    "@types/seedrandom": "^2.4.28",
    "@webgpu/types": "0.1.38",
    "long": "4.0.0",
    "node-fetch": "~2.6.1",
    "seedrandom": "^3.0.5"
  },
  "browser": {
    "node-fetch": false,
    "util": false,
    "crypto": false,
    "worker_threads": false
  },
  "sideEffects": [
    "./dist/index.js",
    "./dist/engine.js",
    "./dist/tensor.js",
    "./dist/base_side_effects.js",
    "./dist/flags.js",
    "./dist/platforms/*.js",
    "./dist/register_all_gradients.js",
    "./dist/public/chained_ops/*.js",
    "./dist/io/*.js",
    "./src/index.mjs",
    "./src/engine.mjs",
    "./src/tensor.mjs",
    "./src/base_side_effects.mjs",
    "./src/flags.mjs",
    "./src/platforms/*.mjs",
    "./src/register_all_gradients.mjs",
    "./src/public/chained_ops/*.mjs",
    "./src/io/*.mjs"
  ],
  "resolutions": {
    "minimist": "1.2.6"
  }
}