title: Mounting a FileDatasets in Azure ML Services
body: <p>I am facing a problem with the Dataset module in Azure Machine Learning Services. I created a FileDataset with a bunch of images to train a model in TensorFlow. I’m mounting the dataset in the target compute and then passing the mounting point to the train script as described <a href="https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/work-with-data/datasets/datasets-tutorial/train-with-datasets.ipynb" rel="nofollow noreferrer">in the sample notebook we have on GitHub</a>. </p>
  
  <p>I tried two approaches: to pass the path as an script parameter (as suggested on GitHub) and as a named input, but none of them seem to pass the mounting point correctly.  Anyone does know which is the correct way to make it work? (I can make it work with Data Sources btw)</p>
  
  <p>As script parameter</p>
  
  <pre><code>script_params = {
      '--data-folder': dset.as_named_input('dogscats_train').as_mount('tmp/dataset'),
  } 
  
  src = TensorFlow(source_directory =  r'Tensorflow',
                framework_version = '1.13',
                entry_script = 'train.py',
                script_params=script_params,
                compute_target='amlcompute', 
                vm_size='Standard_NC6', 
                use_gpu = True, 
                pip_packages = ['matplotlib', 'pillow', 'numpy', 'azureml-sdk'])
  </code></pre>
  
  <p><strong>Mounted path:</strong></p>
  
  <p>/mnt/batch/tasks/shared/LS_root/jobs/aa-ml-aml-workspace/azureml/cats-vs-dogs-tensorflow_1570799752_014bea9f/mounts/workspaceblobstore/azureml/cats-vs-dogs-tensorflow_1570799752_014bea9f/tmp/dataset</p>
  
  <p><strong>Actual path received in the script:</strong></p>
  
  <p>/tmp/dataset</p>
  
  <p>As named input</p>
  
  <pre><code>src = TensorFlow(source_directory =  r'Tensorflow',
                framework_version = '1.13',
                entry_script = 'train.py',
                inputs=[dset.as_named_input('dogscats_train')],
                compute_target='amlcompute', 
                vm_size='Standard_NC6', 
                use_gpu = True, 
                pip_packages = ['matplotlib', 'pillow', 'numpy', 'azureml-sdk'])
  </code></pre>
  
  <p><strong>Mounted Path:</strong></p>
  
  <p>/mnt/batch/tasks/shared/LS_root/jobs/aa-ml-aml-workspace/azureml/cats-vs-dogs-tensorflow_1570804147_39168dcf/mounts/workspaceblobstore</p>
  
  <p><strong>Path retrieved by run.input_datasets['dogscats_train'].mount('tmp/dataset').mount_point:</strong></p>
  
  <p>/mnt/batch/tasks/shared/LS_root/jobs/aa-ml-aml-workspace/azureml/cats-vs-dogs-tensorflow_1570804147_39168dcf/mounts/workspaceblobstore/azureml/cats-vs-dogs-tensorflow_1570804147_39168dcf/tmp/dataset</p>