Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
fix: make compress/decompress of BaguaTensor method string consiste…
Browse files Browse the repository at this point in the history
…nt (#33)
  • Loading branch information
wangraying authored Jul 13, 2021
1 parent ff5e988 commit ee929df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bagua-core-internal/src/datatypes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ impl BaguaTensor {

pub fn compress(&self, method: &str, n_chunks: usize, target_chunk: i32) -> Self {
match method {
"min_max_uint8" => Self {
"MinMaxUInt8" => Self {
inner: Arc::new(RwLock::new(BaguaTensorInner {
name: "compressed_tensor".to_string(),
raw: self
Expand Down Expand Up @@ -855,7 +855,7 @@ impl BaguaTensor {
//
pub fn decompress_from(&mut self, method: &str, n_chunks: usize, compressed_buffer: &Self) {
match method {
"min_max_uint8" => {
"MinMaxUInt8" => {
self.inner.write().raw.decompress_from(
&TensorCompressionMethod::MinMaxUInt8(MinMaxUInt8CompressionParameters {}),
n_chunks,
Expand Down

0 comments on commit ee929df

Please sign in to comment.