2023-01-02 14:28:25 +00:00
|
|
|
//! Welcome to the ZML API documentation!
|
|
|
|
|
//! ZML provides tools to write high level code describing a neural network,
|
|
|
|
|
//! compiling it for various accelerators and targets, and executing it.
|
|
|
|
|
//!
|
|
|
|
|
|
2025-06-24 15:39:55 +00:00
|
|
|
// Namespaces
|
|
|
|
|
const std = @import("std");
|
|
|
|
|
|
2025-08-20 10:27:54 +00:00
|
|
|
pub const platform_specific = @import("c");
|
2025-06-24 15:39:55 +00:00
|
|
|
pub const tokenizer = @import("zml/tokenizer");
|
|
|
|
|
|
|
|
|
|
pub const aio = @import("aio.zig");
|
2023-01-02 14:28:25 +00:00
|
|
|
pub const Buffer = @import("buffer.zig").Buffer;
|
2023-01-27 14:35:11 +00:00
|
|
|
pub const Bufferized = @import("tensor.zig").Bufferized;
|
2025-08-20 10:27:54 +00:00
|
|
|
pub const callback = @import("callback.zig");
|
2023-01-02 14:28:25 +00:00
|
|
|
pub const CompilationOptions = @import("platform.zig").CompilationOptions;
|
2025-06-24 15:39:55 +00:00
|
|
|
pub const context = @import("context.zig");
|
2023-01-02 14:28:25 +00:00
|
|
|
pub const Context = @import("context.zig").Context;
|
|
|
|
|
pub const Data = @import("dtype.zig").Data;
|
|
|
|
|
pub const DataType = @import("dtype.zig").DataType;
|
2023-10-13 16:08:08 +00:00
|
|
|
pub const exe = @import("exe.zig");
|
2025-06-24 15:39:55 +00:00
|
|
|
pub const compile = exe.compile;
|
|
|
|
|
pub const compileWithPrefix = exe.compileWithPrefix;
|
|
|
|
|
pub const compileFn = exe.compileFn;
|
|
|
|
|
pub const compileModel = exe.compileModel;
|
|
|
|
|
pub const FnExe = exe.FnExe;
|
|
|
|
|
pub const ModuleExe = exe.ModuleExe;
|
|
|
|
|
pub const ModuleSignature = exe.ModuleSignature;
|
2023-01-02 14:28:25 +00:00
|
|
|
pub const floats = @import("floats.zig");
|
|
|
|
|
pub const helpers = @import("helpers.zig");
|
2025-06-24 15:39:55 +00:00
|
|
|
pub const HostBuffer = @import("hostbuffer.zig").HostBuffer;
|
2023-01-02 14:28:25 +00:00
|
|
|
pub const meta = @import("meta.zig");
|
2025-01-28 09:35:58 +00:00
|
|
|
pub const mlir = @import("mlirx.zig");
|
2025-06-24 15:39:55 +00:00
|
|
|
pub const module = @import("module.zig");
|
|
|
|
|
pub const nn = @import("nn.zig");
|
|
|
|
|
pub const ops = @import("ops.zig");
|
|
|
|
|
pub const call = ops.call;
|
2024-01-01 15:31:41 +00:00
|
|
|
pub const pjrt = @import("pjrtx.zig");
|
2025-06-24 15:39:55 +00:00
|
|
|
pub const platform = @import("platform.zig");
|
|
|
|
|
pub const Platform = @import("platform.zig").Platform;
|
|
|
|
|
pub const Shape = @import("shape.zig").Shape;
|
|
|
|
|
pub const ShapeOf = @import("tensor.zig").ShapeOf;
|
|
|
|
|
pub const Target = @import("platform.zig").Target;
|
|
|
|
|
pub const Tensor = @import("tensor.zig").Tensor;
|
2025-12-29 16:17:11 +00:00
|
|
|
pub const shapesOf = @import("tensor.zig").shapesOf;
|
2023-01-02 14:28:25 +00:00
|
|
|
pub const testing = @import("testing.zig");
|
|
|
|
|
pub const torch = @import("torch.zig");
|
|
|
|
|
|
|
|
|
|
pub const tools = struct {
|
|
|
|
|
pub const Tracer = @import("tools/tracer.zig").Tracer;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
pub const log = std.log.scoped(.zml);
|
|
|
|
|
|
|
|
|
|
test {
|
|
|
|
|
// NOTE : testing entrypoint.
|
|
|
|
|
// Don't forget to import your module if you want to declare tests declarations that will be run by //zml:test
|
|
|
|
|
std.testing.refAllDecls(@This());
|
|
|
|
|
}
|