This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | """Hack to add per-session state to Streamlit. | |
| Usage | |
| ----- | |
| >>> import SessionState | |
| >>> | |
| >>> session_state = SessionState.get(user_name='', favorite_color='black') | |
| >>> session_state.user_name | |
| '' | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | """ | |
| Thiss script would convert a pre-trained TF model to a servable version for TF Serving. | |
| A pre-trained model can be downloaded here | |
| https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/detection_model_zoo | |
| Requirements: | |
| * A directory contains pretrained model (can be download above). | |
| * Edit three arguments `frozen_graph`, `model_name`, `base_dir` accordingly | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | using System; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using Microsoft.VisualStudio.TestTools.UnitTesting; | |
| [TestClass] | |
| public class TaskRunCancellationTokenUnitTests | |
| { | |
| [TestMethod] | |
| public void CancellationTokenPassedToSynchronousTaskRun_CancelsTaskWithTaskCanceledException() |