/// <summary> /// Return a list of failed checks corresponding to the failed compatibility checks /// between the Model and the BrainParameters. Note : This does not reload the model. /// If changes have been made to the BrainParameters or the Model, the model must be /// reloaded using GiveModel before trying to get the compatibility checks. /// </summary> /// <returns> The list of the failed compatibility checks between the Model and the /// Brain Parameters</returns> public IEnumerable <string> GetModelFailedChecks() { #if ENABLE_TENSORFLOW return((_modelParamLoader != null) ? _modelParamLoader.GetChecks() : new List <string>()); #else return((_modelParamLoader != null) ? _modelParamLoader.GetChecks() : new List <string>()); #endif }
/// <summary> /// Return a list of failed checks corresponding to the failed compatibility checks /// between the Model and the BrainParameters. Note : This does not reload the model. /// If changes have been made to the BrainParameters or the Model, the model must be /// reloaded using GiveModel before trying to get the compatibility checks. /// </summary> /// <returns> The list of the failed compatibility checks between the Model and the /// Brain Parameters</returns> public IEnumerable <string> GetModelFailedChecks() { #if ENABLE_TENSORFLOW return((_modelParamLoader != null) ? _modelParamLoader.GetChecks() : new List <string>()); #elif ENABLE_BARRACUDA return((_modelParamLoader != null) ? _modelParamLoader.GetChecks() : new List <string>()); #else return(new List <string>() { "You need to install the TensorflowSharp plugin and add the ENABLE_TENSORFLOW " + "flag in your Player Settings in order to use inference. " }); #endif }