Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mkeeter/fidget
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 814b0151629414c38e436e4fe82a4c598be552c0
Choose a base ref
..
head repository: mkeeter/fidget
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 47788cc21eb1d0b26530a74eccd023afab700553
Choose a head ref
Showing with 1 addition and 2 deletions.
  1. +1 −2 fidget/src/core/eval/test/symbolic_deriv.rs
3 changes: 1 addition & 2 deletions fidget/src/core/eval/test/symbolic_deriv.rs
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ use crate::{
vm::VmFunction,
};

/// Helper struct to put constrains on our `Shape` object
/// Helper struct to test symbolic differentiation
pub struct TestSymbolicDerivs;

impl TestSymbolicDerivs {
@@ -21,7 +21,6 @@ impl TestSymbolicDerivs {
let tape = shape.grad_slice_tape(Default::default());
let mut eval = VmFunction::new_grad_slice_eval();

// Test symbolic differentiation at the same time
let node_deriv = ctx.deriv(node, ctx.get_var(v).unwrap()).unwrap();
let shape_deriv = VmFunction::new(&ctx, node_deriv).unwrap();
let tape_deriv = shape_deriv.float_slice_tape(Default::default());