Skip to content

Commit

Permalink
Start refactor of comp_graph
Browse files Browse the repository at this point in the history
  • Loading branch information
rileysu committed Dec 17, 2023
1 parent 6a65e7d commit b636fa1
Show file tree
Hide file tree
Showing 5 changed files with 123 additions and 189 deletions.
3 changes: 2 additions & 1 deletion ideas.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@
- Use phantom to make tensors references to graph so it can't outlive graph
- Probably remove the distinction between context and comp_graph
- Dump graph on calculation
- Allow for recalc maybe
- Allow for recalc maybe (as in mutating tensors within the graph)
- Model how the graph interface should look externally as ergonomics is an issue rn
2 changes: 1 addition & 1 deletion src/context/edge.rs → src/comp_graph/edge.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::engine::{tensor::{allowed_unit::AllowedUnit, EngineTensor}, EngineError};

use super::comp_graph::{NodeKey, ComputationGraphError};
use super::{NodeKey, ComputationGraphError};

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum Edge<T: AllowedUnit> {
Expand Down
Loading

0 comments on commit b636fa1

Please sign in to comment.