MCPcopy Create free account
hub / github.com/sql-machine-learning/sqlflow / IsPAI

Function IsPAI

go/codegen/tensorflow/codegen.go:83–85  ·  view source on GitHub ↗

IsPAI tells if we are using PAI platform currently

()

Source from the content-addressed store, hash-verified

81
82// IsPAI tells if we are using PAI platform currently
83func IsPAI() bool {
84 return os.Getenv("SQLFLOW_submitter") == "pai" || os.Getenv("SQLFLOW_submitter") == "alisa"
85}
86
87func setDefaultOptimizer(trainStmt *ir.TrainStmt, optimizerParamName string) {
88 // TODO(shendiaomo): Try to get the default value from the python `inspect` module instead of hard coding

Callers 9

TFLoadAndPredictFunction · 0.92
TFLoadAndExplainFunction · 0.92
TFLoadAndEvaluateFunction · 0.92
PredictFunction · 0.92
ExplainFunction · 0.92
EvaluateFunction · 0.92
constructOptimizersFunction · 0.85
InitializeAttributesFunction · 0.85
TrainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected