redisai-js
Version:
A high-performance Typescript client for RedisAI
48 lines (47 loc) • 1.25 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {value: true});
/**
* Direct mapping to RedisAI Tensors - represents an n-dimensional array of values
*/
var Tensor = /** @class */ (function () {
function Tensor(dtype, shape, data) {
this._shape = shape;
this._dtype = dtype;
if (data != null) {
this._data = data;
}
}
Object.defineProperty(Tensor.prototype, "dtype", {
get: function () {
return this._dtype;
},
set: function (value) {
this._dtype = value;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Tensor.prototype, "shape", {
get: function () {
return this._shape;
},
set: function (value) {
this._shape = value;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Tensor.prototype, "data", {
get: function () {
return this._data;
},
set: function (value) {
this._data = value;
},
enumerable: true,
configurable: true
});
return Tensor;
}());
exports.Tensor = Tensor;
//# sourceMappingURL=Tensor.js.map