Metadata-Version: 2.4
Name: creyone_model
Version: 1.0.0
Summary: PyTorch layer building tools for CREYONE
Author-email: Linqa Kiriyama <kiriyamalq@gmail.com>
License: MIT License
        
        Copyright (c) 2026 QNiLix
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/qnilix/creyone_model
Project-URL: Documentation, https://creyone-model.readthedocs.io/
Project-URL: Repository, https://github.com/qnilix/creyone_model.git
Project-URL: Bug Tracker, https://github.com/qnilix/creyone_model/issues
Project-URL: Changelog, https://github.com/qnilix/creyone_model/blob/main/CHANGELOG.md
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: torch>=2.0
Requires-Dist: einops
Requires-Dist: creyone_layer
Dynamic: license-file

# creyone_model

PyTorch layer-building utilities for the CREYONE framework.

## Overview

`creyone_model` provides a config-first API for assembling CNN building blocks.
All layer hyper-parameters live in a single `CNNBlockCfg` dataclass, making it
easy to swap layer types (convolution, normalisation, activation, pooling)
without changing model code.

## Installation

```bash
pip install creyone_model
```

Requires Python ≥ 3.10 and PyTorch ≥ 2.0.

## Quick start

```python
from creyone_model import CNNBlockCfg

cfg = CNNBlockCfg(tensor_dims=2, act_name='silu')
block = cfg.block_module(in_dim=3, out_dim=64, kernel_size=3)

import torch
y = block(torch.randn(1, 3, 224, 224))  # (1, 64, 224, 224)
```

## Documentation

Full documentation (API reference + getting started guide) is hosted at
<https://creyone-model.readthedocs.io/>.
