Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Joe McCain III <jo3mccain@icloud.com>
  • Loading branch information
FL03 committed Apr 20, 2024
1 parent 2dd1f2d commit ec7e107
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 21 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ keywords = ["acme", "autodiff", "mathematics", "tensor"]
license = "Apache-2.0"
repository = "https://github.com/FL03/acme"
readme = "README.md"
version = "0.3.1"
# version = "0.3.1-nightly"
# version = "0.3.1"
version = "0.3.1-nightly"

[workspace]
default-members = [
Expand Down
20 changes: 10 additions & 10 deletions acme/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,16 @@ required-features = ["macros"]
[build-dependencies]

[dependencies]
acme-core = { path = "../core", version = "0.3.1" }
acme-derive = { optional = true, path = "../derive", version = "0.3.1" }
acme-graphs = { optional = true, path = "../graphs", version = "0.3.1" }
acme-macros = { optional = true, path = "../macros", version = "0.3.1" }
acme-tensor = { optional = true, path = "../tensor", version = "0.3.1" }
# acme-core = { path = "../core", version = "0.3.1-nightly" }
# acme-derive = { optional = true, path = "../derive", version = "0.3.1-nightly" }
# acme-graphs = { optional = true, path = "../graphs", version = "0.3.1-nightly" }
# acme-macros = { optional = true, path = "../macros", version = "0.3.1-nightly" }
# acme-tensor = { optional = true, path = "../tensor", version = "0.3.1-nightly" }
# acme-core = { path = "../core", version = "0.3.1" }
# acme-derive = { optional = true, path = "../derive", version = "0.3.1" }
# acme-graphs = { optional = true, path = "../graphs", version = "0.3.1" }
# acme-macros = { optional = true, path = "../macros", version = "0.3.1" }
# acme-tensor = { optional = true, path = "../tensor", version = "0.3.1" }
acme-core = { path = "../core", version = "0.3.1-nightly" }
acme-derive = { optional = true, path = "../derive", version = "0.3.1-nightly" }
acme-graphs = { optional = true, path = "../graphs", version = "0.3.1-nightly" }
acme-macros = { optional = true, path = "../macros", version = "0.3.1-nightly" }
acme-tensor = { optional = true, path = "../tensor", version = "0.3.1-nightly" }

[dev-dependencies]
approx = "0.5"
Expand Down
4 changes: 2 additions & 2 deletions graphs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ strum.workspace = true

[dependencies.acme-core]
path = "../core"
version = "0.3.1"
# version = "0.3.1-nightly"
# version = "0.3.1"
version = "0.3.1-nightly"

[package.metadata.docs.rs]
all-features = true
Expand Down
3 changes: 0 additions & 3 deletions macros/src/autodiff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,12 @@ pub fn impl_autodiff(partial: &PartialAst) -> TokenStream {
// }
match expr {
PartialFn::Expr(inner) => {
println!("******* EXPR ********");
expr::handle_expr(inner, var)
}
PartialFn::Item(inner) => {
println!("******* ITEM_FN ********");
item::handle_item(&inner.clone().into(), var)
}
PartialFn::Custom(_inner) => {
println!("******* CUSTOM ********");
panic!("Custom functions not yet supported")
}
}
Expand Down
3 changes: 1 addition & 2 deletions macros/src/handle/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub fn handle_item(item: &Item, var: &Ident) -> TokenStream {
match item {
Item::Fn(inner) => handle_item_fn(inner, var),

_ => panic!("Unsupported item!"),
_ => panic!("Currently only able to handle function items"),
}
}

Expand All @@ -26,7 +26,6 @@ pub fn handle_item_fn(item: &ItemFn, var: &Ident) -> TokenStream {
}
}
}
println!("\n\n****\nITEM_FN\n****");

handle_block(block, var)
}
4 changes: 2 additions & 2 deletions tensor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ strum = { features = ["derive"], version = "0.26" }

[dependencies.acme-core]
path = "../core"
version = "0.3.1"
# version = "0.3.1-nightly"
# version = "0.3.1"
version = "0.3.1-nightly"

[dev-dependencies]
approx = "0.5"
Expand Down

0 comments on commit ec7e107

Please sign in to comment.