Skip to content

c++作业 - #35

Open
youjiaren wants to merge 34 commits into
LearningInfiniTensor:mainfrom
youjiaren:main
Open

c++作业#35
youjiaren wants to merge 34 commits into
LearningInfiniTensor:mainfrom
youjiaren:main

Conversation

@youjiaren

Copy link
Copy Markdown

No description provided.

youjiaren added 30 commits July 28, 2026 15:52
Fixed output syntax for console message.
Added variable definition for x and included iostream for input/output.
Changed ANS from constexpr to auto to allow runtime evaluation.
Initialize cache for Fibonacci function and correct loop condition.
Implement Fibonacci sequence validation using pointers.
Updated comments and fixed URLs for clarity.
Fix loop condition in Fibonacci calculation and initialize cache.
Fix the loop condition for caching Fibonacci calculations and initialize the Fibonacci struct correctly.
Implemented dynamic constructor, copy constructor, and destructor for DynFibonacci class. Updated get method for Fibonacci calculation and ensured deep copy of cache.
Refactor class A and B to correctly initialize static members and implement virtual destructors. Update assertions in main function to reflect expected values.
Refactor sigmoid function to be a template for dynamic types.
Implemented broadcasting addition for Tensor4D class.
Implemented the strides function to calculate the access strides of a tensor based on its shape using reverse iteration.
Updated answers vector to include resource lifecycle analysis results.
Use std::transform to double values and convert to strings
Calculate tensor size using std::accumulate.
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.

1 participant