Get the MAJOR.MINOR-only version of libtensorflow.
()
| 49 | |
| 50 | /** Get the MAJOR.MINOR-only version of libtensorflow. */ |
| 51 | function getLibTensorFlowMajorDotMinorVersion() { |
| 52 | const items = LIBTENSORFLOW_VERSION.split('.'); |
| 53 | if (items.length < 3) { |
| 54 | throw new Error( |
| 55 | `Invalid version string for libtensorflow: ${LIBTENSORFLOW_VERSION}`); |
| 56 | } |
| 57 | return `${items[0]}.${items[1]}`; |
| 58 | } |
| 59 | |
| 60 | // Determine constants for deps folder names and destination (build) path names. |
| 61 | let depsLibTensorFlowName = 'libtensorflow'; |
nothing calls this directly
no test coverage detected
searching dependent graphs…