Skip to content

Conversation

@ITHwang
Copy link
Owner

@ITHwang ITHwang commented Apr 14, 2025

Add computational graph visualization support

Changes

  • Implement Sin and Cos functions with proper gradient calculation
  • Add comprehensive test cases for trigonometric functions
  • Support for visualization of computational graphs with trigonometric operations

Description

This PR enhances the computational graph capabilities by adding support for trigonometric functions and graph visualization. The Sin and Cos functions are now properly implemented with correct gradient propagation for backpropagation in the computational graph.

The visualization functionality allows users to inspect and debug computational graphs, making it easier to understand the flow of operations and gradients in complex neural network architectures.

Testing

  • Added test_sin_backward and test_cos_backward to verify gradient calculations
  • Verified analytical gradients match numerical approximations
  • Tested visualization with various graph structures and operations

ITHwang added 2 commits April 14, 2025 01:05
- visualize the graph with graphviz
- add test cases
- add doc
@ITHwang ITHwang merged commit d75a2b1 into main Apr 14, 2025
1 check failed
@ITHwang ITHwang deleted the feat/graph-visualization branch April 14, 2025 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants