Skip to main content

pms-inference-engine

pms에서 사용하기 위한 inference engine입니다.

Install

pip install pms-inference-engine

Use

import pms_inference_engine as E

# processor type in engine
processor_type = "SleepAndPassProcessor"

# number of processor in engine
nprocessors = 4

# params for construct processor
processor_kwargs = {
    "concurrency": 2,
    "sleep_time": 0.1,
} 

# create engine
engine = E.Engine(
    processor_type=processor_type,
    number_of_processors=nprocessors,
    processor_kwargs=processor_kwargs,
)

# create queue for engine
dequeue = Queue()
enqueue = Queue()

# input data
for i in range(nframe):
    dequeue.put(E.EngineIOData(i, np.zeros((10, 10))))

# add exit flag
# - if you don't add the exit flag, the engine will run forever
dequeue.put(None)

# run engine
engine.run(dequeue=dequeue, enqueue=enqueue)

Metadata

Release files for pms-inference-engine 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pms-inference-engine 2.1.0
File Size Uploaded Provenance Actions
pms_inference_engine-2.1.0.tar.gz 5.2 kB Without provenance Details for pms_inference_engine-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pms-inference-engine 2.1.0
File Interpreter ABI Platform Actions
pms_inference_engine-2.1.0-py3-none-any.whl Python 3 none any Details for pms_inference_engine-2.1.0-py3-none-any.whl

Total release size: 15.5 kB

Release files / pms_inference_engine-2.1.0.tar.gz

Download URL pms_inference_engine-2.1.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
97e06a80a06465ab23d42d72e59c727a25fe0e93d2e33a0c501d0a12a3db481c
BLAKE2b-256 checksum
How to use checksums
8a6f05e7a2d3a6073b88372327f3d035c8ad5d954aaa36d00eeab730ef0953c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / pms_inference_engine-2.1.0-py3-none-any.whl

Download URL pms_inference_engine-2.1.0-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3325d6991a19e94c034b7bc27cf1e5a29a47ffc54e9b6e401d55bd5513e5e608
BLAKE2b-256 checksum
How to use checksums
5b94666fd0dd59dc42e6b2f2f14ee6e558a7fee6011547e3243458657bce67f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for pms-inference-engine 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page