diff --git a/deno.jsonc b/deno.jsonc index 76e22be..734e841 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -1,6 +1,6 @@ { "name": "@denosaurs/netsaur", - "version": "0.3.2-patch3", + "version": "0.4.0", "exports": { ".": "./mod.ts", "./web": "./web.ts", diff --git a/mod.ts b/mod.ts index 5b77cd7..2e4c352 100644 --- a/mod.ts +++ b/mod.ts @@ -1,17 +1,23 @@ -export { setupBackend } from "./packages/core/core/engine.ts"; -export * from "./packages/core/core/mod.ts"; -export * from "./packages/core/core/types.ts"; -export * from "./packages/core/core/tensor/tensor.ts"; -export * from "./packages/core/core/api/layers.ts"; -export * from "./packages/core/core/api/shape.ts"; -export * from "./packages/core/core/api/network.ts"; -export * from "./packages/core/core/api/optimizer.ts"; -export * from "./packages/core/core/api/scheduler.ts"; -export { GPU } from "./packages/core/backends/gpu/mod.ts"; +export { setupBackend } from "./packages/core/src/core/engine.ts"; +export * from "./packages/core/src/core/mod.ts"; +export * from "./packages/core/src/core/types.ts"; +export * from "./packages/core/src/core/tensor/tensor.ts"; +export * from "./packages/core/src/core/api/layers.ts"; +export * from "./packages/core/src/core/api/shape.ts"; +export * from "./packages/core/src/core/api/network.ts"; +export * from "./packages/core/src/core/api/optimizer.ts"; +export * from "./packages/core/src/core/api/scheduler.ts"; +export { GPU } from "./packages/core/src/backends/gpu/mod.ts"; -import { CPU, type CPUBackendLoader } from "./packages/core/backends/cpu/mod.ts"; -import { WASM, type WASMBackendLoader } from "./packages/core/backends/wasm/mod.ts"; -import type { BackendLoader } from "./packages/core/core/engine.ts"; +import { + CPU, + type CPUBackendLoader, +} from "./packages/core/src/backends/cpu/mod.ts"; +import { + WASM, + type WASMBackendLoader, +} from "./packages/core/src/backends/wasm/mod.ts"; +import type { BackendLoader } from "./packages/core/src/core/engine.ts"; onerror = () => { if (typeof Deno == "undefined") { diff --git a/visualizer/mod.ts b/packages/visualizer/mod.ts similarity index 95% rename from visualizer/mod.ts rename to packages/visualizer/mod.ts index bc57fe9..6f0199b 100644 --- a/visualizer/mod.ts +++ b/packages/visualizer/mod.ts @@ -1,4 +1,4 @@ -import type { NeuralNetwork, Rank, Tensor } from "../mod.ts"; +import type { NeuralNetwork, Rank, Tensor } from "../../mod.ts"; import type { Line } from "./types.ts"; /** diff --git a/visualizer/types.ts b/packages/visualizer/types.ts similarity index 100% rename from visualizer/types.ts rename to packages/visualizer/types.ts diff --git a/web.ts b/web.ts index 8760c53..4239521 100644 --- a/web.ts +++ b/web.ts @@ -1,10 +1,10 @@ -export { setupBackend } from "./packages/core/core/engine.ts"; -export * from "./packages/core/core/mod.ts"; -export * from "./packages/core/core/types.ts"; -export * from "./packages/core/core/tensor/tensor.ts"; -export * from "./packages/core/core/api/layers.ts"; -export * from "./packages/core/core/api/shape.ts"; -export * from "./packages/core/core/api/network.ts"; -export * from "./packages/core/core/api/optimizer.ts"; +export { setupBackend } from "./packages/core/src/core/engine.ts"; +export * from "./packages/core/src/core/mod.ts"; +export * from "./packages/core/src/core/types.ts"; +export * from "./packages/core/src/core/tensor/tensor.ts"; +export * from "./packages/core/src/core/api/layers.ts"; +export * from "./packages/core/src/core/api/shape.ts"; +export * from "./packages/core/src/core/api/network.ts"; +export * from "./packages/core/src/core/api/optimizer.ts"; -export { WASM } from "./packages/core/backends/wasm/mod.ts"; +export { WASM } from "./packages/core/src/backends/wasm/mod.ts";