[XLA:Python] Remove unnecessary Python buffer tree code in BufferFromPyval.
BufferFromPyval hasn't supported Python buffer trees for some time. PiperOrigin-RevId: 325289819 Change-Id: Iaf6f464990278d893ef4c030ae0acea44f8f325e
This commit is contained in:
		
							parent
							
								
									d21fe75e14
								
							
						
					
					
						commit
						3cb0418477
					
				| @ -104,7 +104,6 @@ StatusOr<std::unique_ptr<PyBuffer>> PyClient::BufferFromPyval( | ||||
|     return InvalidArgument("from_python argument must be an array."); | ||||
|   } | ||||
| 
 | ||||
|   TF_ASSIGN_OR_RETURN(PythonBufferTree tree, GetPythonBufferTree(argument)); | ||||
|   std::shared_ptr<PythonRefManager::ManagedPyObjects> py_buffer_ref = | ||||
|       GlobalPyRefManager()->ManageReference(std::move(c->array)); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user