MCPcopy Create free account
hub / github.com/tensorflow/tfjs / getLibTensorFlowMajorDotMinorVersion

Function getLibTensorFlowMajorDotMinorVersion

tfjs-node/scripts/deps-constants.js:51–58  ·  view source on GitHub ↗

Get the MAJOR.MINOR-only version of libtensorflow.

()

Source from the content-addressed store, hash-verified

49
50/** Get the MAJOR.MINOR-only version of libtensorflow. */
51function 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.
61let depsLibTensorFlowName = 'libtensorflow';

Callers

nothing calls this directly

Calls 1

splitMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…