Baunsgaard opened a new pull request #1243:
URL: https://github.com/apache/systemds/pull/1243


   This commit adds a python importer that enables importing arbitrary DML 
scripts that contains function definitions.
   These functions can then be called directly in the python API:
   
   example:
   
   ```dml
   test_01 = function() return(matrix[double] C){
       C = matrix(1,1,1)
   }
   ```
   
   ```python
   res = self.sds.source("./tests/import/source_01.dml", 
"test").test_01().compute(verbose = True)
   ```
   
   this generate the following script (not visible to the user) in the python 
API:
   ```dml
   source("./tests/import/source_01.dml") as test
   V1=test::test_01();
   write(V1, './tmp');
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to