The MLIR dialect, its conversion passes (TFHEToConcrete, ConcreteToCAPI, ConcreteToLLVM), the optimizer component, the compiler binary, the Rust crate and the program_info parameter file all still carried the upstream project's name. They now carry this one's. Two things deliberately keep the word, because in them it is not the name. mlir::OpTrait CRTP parameters mean "the derived type", so they are spelled Derived and OpTy — LLVM's other conventional spelling for the same idiom. concreteShape is a capnp field: renaming it would change the serialized protocol, and the prose describing it is ordinary English. This also repairs references the earlier partial rename left dangling: Security.cpp included concrete/curves.gen.h and the directory is torus/, torus-cpu.h included concrete-num_complex.h, the Torus dialect CMakeLists named ConcreteOps.td, and compiler/setup.py asked find_namespace_packages for a "concrete" package that no longer exists — so it built without the package it ships.
2.6 KiB
module torus.fhe.values.tensor
Declaration of ClearTensor and EncryptedTensor wrappers.
function clear_tensor_builder
clear_tensor_builder(
dtype: BaseDataType,
shape: tuple[int, ]
) → ValueDescription
Build a clear tensor value.
Args: dtype (BaseDataType): dtype of the value
shape (Tuple[int, ...]): shape of the value
Returns: ValueDescription: clear tensor value description with given dtype and shape
function clear_tensor_builder
clear_tensor_builder(
dtype: BaseDataType,
shape: tuple[int, ]
) → ValueDescription
Build a clear tensor value.
Args: dtype (BaseDataType): dtype of the value
shape (Tuple[int, ...]): shape of the value
Returns: ValueDescription: clear tensor value description with given dtype and shape
function encrypted_tensor_builder
encrypted_tensor_builder(
dtype: BaseDataType,
shape: tuple[int, ]
) → ValueDescription
Build an encrypted tensor value.
Args: dtype (BaseDataType): dtype of the value
shape (Tuple[int, ...]): shape of the value
Returns: ValueDescription: encrypted tensor value description with given dtype and shape
function encrypted_tensor_builder
encrypted_tensor_builder(
dtype: BaseDataType,
shape: tuple[int, ]
) → ValueDescription
Build an encrypted tensor value.
Args: dtype (BaseDataType): dtype of the value
shape (Tuple[int, ...]): shape of the value
Returns: ValueDescription: encrypted tensor value description with given dtype and shape