MCPcopy Create free account

hub / github.com/VivekPanyam/carton / functions

Functions635 in github.com/VivekPanyam/carton

Methodfrom
(value: Device)
source/carton/src/runner_interface/v1/types.rs:23
Methodfrom
(value: target_lexicon::Triple)
source/carton/src/format/v1/save.rs:485
Methodfrom
(value: String)
source/carton/src/format/v1/carton_toml.rs:188
Methodfrom
(value: Vec<crate::info::LinkedFile>)
source/carton/src/format/v1/links.rs:36
Methodfrom
(item: super::carton_toml::TensorReference, context: &LoadContext<F>)
source/carton/src/format/v1/load.rs:144
Methodfrom_blob
source/carton-bindings-cpp/src/carton.cc:57
Methodfrom_bytes
(engine: &Engine, bytes: &[u8])
source/carton-runner-wasm/src/lib.rs:20
Methodfrom_loader
(loader: BoxFuture<'static, T>)
source/carton/src/info.rs:166
Methodfrom_ndarray
Strings are a bit complex and require conversion This is unfortunate but necessary because most frameworks have different internal representations of
source/carton-utils-py/src/tensor.rs:100
Methodfrom_value
(value: T)
source/carton/src/info.rs:157
Methodget
source/carton-bindings-cpp/src/carton_impl.hh:117
Functionget_accessed
For lunchbox::types::Metadata
source/anywhere/src/serialize.rs:142
Methodget_channel
A framed transport that can transport serializable things on top of a bidirectional stream. Note: this can only be called once per channel id
source/carton-runner-interface/src/do_not_modify/wasm_comms.rs:69
Functionget_created
(item: &Metadata)
source/anywhere/src/serialize.rs:146
Methodget_current
()
source/carton-runner-py/src/env.rs:34
Functionget_current_environment
()
source/carton-runner-py/src/env.rs:89
Methodget_data_sha256
Returns the sha256 of `data`
source/carton-runner-packager/src/lib.rs:211
Methodget_dtype
(&self)
source/carton-bindings-py/src/conversions.rs:257
Methodget_id
Returns the generated package id. This is derived from the hashes of all the contained data files.
source/carton-runner-packager/src/lib.rs:201
Methodget_input_tensor
Returns an input tensor if it exists
source/carton/src/info.rs:246
Functionget_int_opt
(opt: &RunnerOpt)
source/carton-runner-torch/src/main.rs:285
Functionget_model
(compile: bool, enable_cpu_offload: bool, **kwargs)
examples/hf/sdxl/to_pack/infer.py:100
Functionget_model
()
examples/hf/bark/to_pack/infer.py:62
Functionget_model
()
examples/hf/dpt-hybrid-midas/to_pack/infer.py:67
Functionget_model_info
(py: Python, url_or_path: String)
source/carton-bindings-py/src/lib.rs:245
Functionget_modified
(item: &Metadata)
source/anywhere/src/serialize.rs:150
Methodget_output_tensor
Returns an output tensor if it exists
source/carton/src/info.rs:257
Methodget_shm_region
Get the SHM region containing addr (if any)
source/carton-runner-interface/src/do_not_modify/alloc_shm.rs:244
Methodhandle
source/carton-bindings-cpp/src/carton_impl.hh:139
Functionhandle_none
(item: &PyAny)
source/carton-bindings-py/src/conversions.rs:352
Methodhandle_stream
Handle messaging on a UnixStream and callbacks in the local process
source/carton-runner-interface/src/do_not_modify/comms.rs:107
Methodhard_link
(&self, src: impl PathType, dst: impl PathType)
source/anywhere/src/types.rs:364
Functioninfer
(model, input_queue: asyncio.Queue, output_queue: asyncio.Queue)
source/carton-bindings-py/tests/test_basic.py:54
Methodinfer
(&self, tensors: HashMap<String, Tensor>)
source/carton-runner-rust-bert/src/sentiment_analysis.rs:94
Methodinfer
(&self, tensors: HashMap<String, Tensor>)
source/carton-runner-rust-bert/src/masked_language.rs:97
Methodinfer
(&self, tensors: HashMap<String, Tensor>)
source/carton-runner-rust-bert/src/translate.rs:95
Methodinfer
(&self, tensors: HashMap<String, Tensor>)
source/carton-runner-rust-bert/src/zero_shot.rs:93
Methodinfer
(&self, tensors: HashMap<String, Tensor>)
source/carton-runner-rust-bert/src/summarize.rs:90
Methodinfer
(&self, tensors: HashMap<String, Tensor>)
source/carton-runner-rust-bert/src/text_generation.rs:90
Methodinfer
The first arg should be a map from strings (tensor names) to objects in the below structure: { "buffer": ArrayBuffer, "shape": [1, 2, 3], "dtype": "fl
source/carton-bindings-nodejs/src/lib.rs:113
Functioninfer_callback
source/carton-bindings-cpp/tests/callback.cc:27
Functioninfer_callback
source/carton-bindings-c/tests/basic.c:22
Methodinfer_future_callback
source/carton-bindings-cpp/src/carton.cc:311
Functioninfer_noop_benchmark
(c: &mut Criterion)
source/carton/benches/bench_noop_infer.rs:26
Methodinfer_user_callback
source/carton-bindings-cpp/src/carton.cc:341
Methodinfer_with_handle
(&self, py: Python<'a>, handle: SealHandle)
source/carton-bindings-py/src/lib.rs:79
Methodinfer_with_handle
(&self, handle: u64)
source/carton-runner-interface/src/runner.rs:211
Methodinfer_with_handle
Infer using a handle from `seal`. This approach can make inference pipelines more efficient vs just using `infer`
source/carton/src/carton.rs:118
Methodinfer_with_tensors
(self, tensors)
examples/hf/sdxl/to_pack/infer.py:69
Methodinfer_with_tensors
(self, tensors)
examples/hf/bark/to_pack/infer.py:41
Methodinfer_with_tensors
(self, tensors)
examples/hf/dpt-hybrid-midas/to_pack/infer.py:40
Methodinfo
(&self)
source/carton-bindings-py/src/lib.rs:95
Functionload
( py: Python, path: String, visible_device: Option<Device>, override_runner_name: Option<Strin
source/carton-bindings-py/src/lib.rs:103
Functionload
Load a carton model
source/carton-bindings-nodejs/src/lib.rs:40
Functionload
(fs: &Arc<T>)
source/carton/src/format/v1/load.rs:51
Methodload
(self, fs: &F)
source/carton-runner-rust-bert/src/sentiment_analysis.rs:51
Methodload
(self, fs: &F)
source/carton-runner-rust-bert/src/masked_language.rs:53
Methodload
(self, fs: &F)
source/carton-runner-rust-bert/src/translate.rs:52
Methodload
(self, fs: &F)
source/carton-runner-rust-bert/src/zero_shot.rs:50
Methodload
(self, fs: &F)
source/carton-runner-rust-bert/src/summarize.rs:50
Methodload
(self, fs: &F)
source/carton-runner-rust-bert/src/text_generation.rs:50
Methodload
()
source/carton-utils/src/config.rs:63
Methodload
( &self, fs: &Arc<T>, runner_name: String, required_framework_version: semver:
source/carton-runner-interface/src/runner.rs:81
Functionload_callback
source/carton-bindings-cpp/tests/callback.cc:43
Functionload_callback
source/carton-bindings-c/tests/basic.c:53
Methodload_future_callback
source/carton-bindings-cpp/src/carton.cc:296
Methodload_user_callback
source/carton-bindings-cpp/src/carton.cc:326
Functionmain
()
source/carton-runner-rust-bert/build.rs:17
Functionmain
()
source/carton-runner-rust-bert/src/main.rs:22
Functionmain
()
source/carton-runner-rust-bert/src/bin/build_rust_bert_releases.rs:31
Functionmain
()
source/carton-bindings-py/build.rs:15
Functionmain
source/carton-bindings-cpp/tests/notifier.cc:20
Functionmain
source/carton-bindings-cpp/tests/callback.cc:59
Functionmain
source/carton-bindings-cpp/tests/future.cc:19
Functionmain
()
source/carton-runner-torch/build.rs:17
Functionmain
()
source/carton-runner-torch/src/main.rs:23
Functionmain
()
source/carton-runner-torch/src/bin/build_torch_releases.rs:31
Functionmain
()
source/carton-bindings-c/build.rs:17
Functionmain
source/carton-bindings-c/tests/notifier.c:20
Functionmain
source/carton-bindings-c/tests/basic.c:73
Functionmain
()
source/fetch-deps/src/main.rs:18
Functionmain
()
source/carton-runner-wasm/src/main.rs:15
Functionmain
()
source/carton-runner-wasm/src/bin/build_wasm_releases.rs:20
Functionmain
()
source/carton-runner-packager/src/bin/ci_upload_releases.rs:25
Functionmain
()
source/carton-runner-py/build.rs:22
Functionmain
This is basically the expanded version of #[pyo3_asyncio::tokio::main] but modified to call `crate::python_utils::init();` before setting up python
source/carton-runner-py/src/main.rs:36
Functionmain
()
source/carton-runner-py/src/bin/build_releases/main.rs:36
Functionmain
(mut cx: ModuleContext)
source/carton-bindings-nodejs/src/lib.rs:253
Functionmain
()
source/carton-utils-py/build.rs:15
Functionmain
()
source/build-utils/src/bin/build_c_cpp_bindings.rs:34
Functionmain
()
source/build-utils/src/bin/upload_c_cpp_bindings.rs:21
Functionmain
()
source/carton-runner-noop/src/main.rs:20
Functionmain
()
source/carton/tests/test_fetch_runner.rs:25
Methodmaybe_from_index
(i: u32)
source/carton/src/types.rs:113
Methodmaybe_from_str
(s: &str)
source/carton/src/types.rs:79
Methodmetadata
(&self)
source/carton/src/overlayfs.rs:94
Methodnew
(item: &PyArrayDyn<T>)
source/carton-bindings-py/src/tensor.rs:51
Methodnew
( name: String, dtype: &str, shape: Shape, description: Option<String>, )
source/carton-bindings-py/src/conversions.rs:269
Methodnew
IMPORTANT**: Be careful when modifying the signature because it can affect the wire protocol
source/carton-runner-interface/src/multiplexer.rs:41
Methodnew
(v: u64)
source/carton-runner-interface/src/server.rs:54
← previousnext →401–500 of 635, ranked by callers