Skip to content

Instantly share code, notes, and snippets.

@mushkevych
Last active April 23, 2018 17:15
Show Gist options
  • Save mushkevych/b724460ee7e7c07edde4d73f7b101196 to your computer and use it in GitHub Desktop.
Save mushkevych/b724460ee7e7c07edde4d73f7b101196 to your computer and use it in GitHub Desktop.
mdal example
base_model = LOAD "https://github.com/tensorflow/models/tree/master/official/resnet"
my_model = EXTEND base_model REUSE 5 LAYERS
TRAIN my_model WITH "dfs://mycompany.com/datasets/mymodel"
input = INPUT "pubsub://subscriptions/myproject/raw-feed" IN FORMAT json SCALE FOR my_model
output = OUTPUT "pubsub://publishers/myproject/prognosis" IN FORMAT json
EXECUTE my_model ON input INTO output
#!/bin/bash
mdal example.mdal --engine tensorflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment