node_modules/@tensorflow/tfjs-data/dist/tf-data.js
/**
         * Private constructor since we cannot add logic before calling `super()`.
         * Instead, we expose static `Variable.variable` method below, which will be
         * added to global namespace.
         */
Private constructor since we cannot add logic before calling `super()`.
Instead, we expose static `Variable.variable` method below, which will be
added to global namespace.
Private constructor since we cannot add logic before calling ` super () ` . Instead we expose static ` Variable . variable ` method below which will be added to global namespace .
function Variable(initialValue, trainable, name) {
            if (trainable === void 0) { trainable = true; }
            var _this = _super.call(this, initialValue.shape, initialValue.dtype, null , initialValue.dataId) || this;
            _this.trainable = trainable;
            _this.name = name;
            if (_this.name == null) {
                _this.name = trackerFn().nextVariableId().toString();
            }
            try {
                trackerFn().registerVariable(_this);
            }
            catch (ex) {
                trackerFn().disposeTensor(_this);
                throw ex;
            }
            return _this;
        }
function Variable ( initialValue , trainable , name ) { if ( trainable === void 0 ) { trainable = true ; } var _this = _super . call ( this , initialValue . shape , initialValue . dtype , null , initialValue . dataId ) || this ; _this . trainable = trainable ; _this . name = name ; if ( _this . name == null ) { _this . name = trackerFn ( ) . nextVariableId ( ) . toString ( ) ; } try { trackerFn ( ) . registerVariable ( _this ) ; } catch ( ex ) { trackerFn ( ) . disposeTensor ( _this ) ; throw ex ; } return _this ; }
Private constructor since we cannot add logic before calling `super()`.
Private constructor since we cannot add logic before calling ` super () ` .
/* values */