normalize.js 317 B

12345678
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var tf = require("@tensorflow/tfjs-core");
  4. function normalize(x) {
  5. return tf.tidy(function () { return tf.mul(tf.sub(x, tf.scalar(127.5)), tf.scalar(0.0078125)); });
  6. }
  7. exports.normalize = normalize;
  8. //# sourceMappingURL=normalize.js.map