mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	ggml-opt: fix data corruption (ggml/1022)
This commit is contained in:
		 Johannes Gäßler
					Johannes Gäßler
				
			
				
					committed by
					
						 Georgi Gerganov
						Georgi Gerganov
					
				
			
			
				
	
			
			
			 Georgi Gerganov
						Georgi Gerganov
					
				
			
						parent
						
							9abe9eeae9
						
					
				
				
					commit
					02e4eaf22f
				
			| @@ -295,6 +295,9 @@ struct ggml_cgraph { | ||||
|     enum ggml_cgraph_eval_order order; | ||||
| }; | ||||
|  | ||||
| // returns a slice of cgraph with nodes [i0, i1) | ||||
| // the slice does not have leafs or gradients | ||||
| // if you need the gradients, get them from the original graph | ||||
| struct ggml_cgraph ggml_graph_view(struct ggml_cgraph * cgraph, int i0, int i1); | ||||
|  | ||||
| // Memory allocation | ||||
|   | ||||
		Reference in New Issue
	
	Block a user