You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@systemds.apache.org by GitBox <gi...@apache.org> on 2021/04/28 23:09:37 UTC

[GitHub] [systemds] Baunsgaard opened a new pull request #1243: [SYSTEMDS-2957] Python API Importer

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:
users@infra.apache.org



[GitHub] [systemds] Baunsgaard closed pull request #1243: [SYSTEMDS-2957] Python API Importer

Posted by GitBox <gi...@apache.org>.
Baunsgaard closed pull request #1243:
URL: https://github.com/apache/systemds/pull/1243


   


-- 
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:
users@infra.apache.org