You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The backend engine can be switched in the following ways.
14
16
15
17
## Local
@@ -48,6 +50,17 @@ from fpm_risk_model.engine import set_backend
48
50
set_backend("tensorflow")
49
51
```
50
52
53
+
## Environment variable
54
+
55
+
Set the environment variable `FPM_BACKEND_ENGINE` before starting the process.
56
+
57
+
For example, to start the IPython with setting the default backend engine to `torch`, launch the
58
+
terminal as below
59
+
60
+
```
61
+
FPM_BACKEND_ENGINE=torch ipython
62
+
```
63
+
51
64
## Reference
52
65
53
66
For further details, please find the following notebook [example](https://colab.research.google.com/github/factorpricingmodel/factor-pricing-model-risk-model/blob/main/examples/notebook/numpy_backend_engine.ipynb).
0 commit comments