shared-ritm 1.2.137 → 1.2.138
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +103 -103
- package/dist/index.css +1 -1
- package/dist/shared-ritm.es.js +174 -166
- package/dist/shared-ritm.umd.js +38 -38
- package/dist/types/api/services/PhotoService.d.ts +40 -0
- package/package.json +64 -64
- package/src/App.vue +2461 -2461
- package/src/api/services/AuthService.ts +53 -53
- package/src/api/services/BrigadesService.ts +32 -32
- package/src/api/services/CommentsService.ts +24 -24
- package/src/api/services/ControlsService.ts +92 -92
- package/src/api/services/EquipmentService.ts +29 -29
- package/src/api/services/FileService.ts +17 -17
- package/src/api/services/GanttService.ts +17 -17
- package/src/api/services/InstrumentsService.ts +63 -63
- package/src/api/services/MetricsService.ts +110 -110
- package/src/api/services/ModulesService.ts +27 -27
- package/src/api/services/ProjectsService.ts +83 -83
- package/src/api/services/RepairsService.ts +124 -124
- package/src/api/services/ScheduleService.ts +69 -69
- package/src/api/services/SearchService.ts +22 -22
- package/src/api/services/TasksService.ts +145 -145
- package/src/api/services/UserService.ts +113 -113
- package/src/api/services/VideoService.ts +103 -103
- package/src/api/settings/ApiService.ts +124 -124
- package/src/api/types/Api_Auth.ts +86 -86
- package/src/api/types/Api_Brigades.ts +36 -36
- package/src/api/types/Api_Comment.ts +40 -40
- package/src/api/types/Api_Controls.ts +111 -111
- package/src/api/types/Api_Equipment.ts +3 -3
- package/src/api/types/Api_Files.ts +7 -7
- package/src/api/types/Api_Instruments.ts +136 -136
- package/src/api/types/Api_Modules.ts +21 -21
- package/src/api/types/Api_Projects.ts +61 -61
- package/src/api/types/Api_Repairs.ts +138 -138
- package/src/api/types/Api_Schedule.ts +64 -64
- package/src/api/types/Api_Search.ts +79 -79
- package/src/api/types/Api_Service.ts +9 -9
- package/src/api/types/Api_Tasks.ts +319 -319
- package/src/api/types/Api_User.ts +140 -140
- package/src/api/types/Api_Video.ts +145 -145
- package/src/common/app-button/AppButton.vue +173 -173
- package/src/common/app-checkbox/AppCheckbox.vue +26 -26
- package/src/common/app-date-picker/AppDatePicker.vue +81 -81
- package/src/common/app-datepicker/AppDatepicker.vue +176 -166
- package/src/common/app-dialogs/AppConfirmDialog.vue +99 -99
- package/src/common/app-dropdown/AppDropdown.vue +37 -37
- package/src/common/app-icon/AppIcon.vue +108 -108
- package/src/common/app-input/AppInput.vue +148 -148
- package/src/common/app-input-new/AppInputNew.vue +175 -175
- package/src/common/app-input-search/AppInputSearch.vue +174 -174
- package/src/common/app-layout/AppLayout.vue +84 -84
- package/src/common/app-layout/components/AppLayoutHeader.vue +273 -273
- package/src/common/app-layout/components/AppLayoutPage.vue +16 -16
- package/src/common/app-loader/index.vue +43 -43
- package/src/common/app-page-layout/AppPageLayout.vue +122 -122
- package/src/common/app-select/AppSelect.vue +157 -157
- package/src/common/app-sheet/AppSheet.vue +120 -120
- package/src/common/app-sheet-new/AppSheetNew.vue +244 -244
- package/src/common/app-sidebar/AppSidebar.vue +168 -168
- package/src/common/app-sidebar/components/SidebarMenu.vue +37 -37
- package/src/common/app-sidebar/components/SidebarMenuItem.vue +148 -148
- package/src/common/app-table/AppTable.vue +308 -308
- package/src/common/app-table/AppTableLayout.vue +137 -137
- package/src/common/app-table/components/ModalSelect.vue +285 -285
- package/src/common/app-table/components/TableModal.vue +356 -356
- package/src/common/app-table/components/TablePagination.vue +152 -152
- package/src/common/app-table/controllers/useBaseTable.ts +45 -45
- package/src/common/app-table/controllers/useColumnSelector.ts +38 -38
- package/src/common/app-table/controllers/useTableModel.ts +102 -102
- package/src/common/app-toggle/AppToggle.vue +24 -24
- package/src/common/app-wrapper/AppWrapper.vue +28 -28
- package/src/global.d.ts +1 -1
- package/src/icons/components/arrow-down-icon.vue +25 -25
- package/src/icons/components/arrow-frame-icon.vue +19 -19
- package/src/icons/components/arrow-square.vue +22 -22
- package/src/icons/components/table-filter-icon.vue +30 -30
- package/src/icons/dialogs/RemoveIcon.vue +12 -12
- package/src/icons/dialogs/SafetyIcon.vue +12 -12
- package/src/icons/header/NotificationIcon.vue +18 -18
- package/src/icons/header/PersonIcon.vue +11 -11
- package/src/icons/header/SettingIcon.vue +14 -14
- package/src/icons/header/flashIcon.vue +24 -24
- package/src/icons/header/searchStatusIcon.vue +24 -24
- package/src/icons/header/smallCapsIcon.vue +34 -34
- package/src/icons/sidebar/assign-module-icon.vue +36 -36
- package/src/icons/sidebar/instrument-history-icon.vue +32 -32
- package/src/icons/sidebar/instrument-order-icon.vue +38 -38
- package/src/icons/sidebar/instrument-work-zone-icon.vue +18 -18
- package/src/icons/sidebar/instruments-icon.vue +45 -45
- package/src/icons/sidebar/logo-icon.vue +15 -15
- package/src/icons/sidebar/logout-icon.vue +13 -13
- package/src/icons/sidebar/modules-icon.vue +16 -16
- package/src/icons/sidebar/notifications-icon.vue +24 -24
- package/src/icons/sidebar/order-icon.vue +44 -44
- package/src/icons/sidebar/pass-icon.vue +38 -38
- package/src/icons/sidebar/positions-icon.vue +42 -42
- package/src/icons/sidebar/preorder-icon.vue +19 -19
- package/src/icons/sidebar/projects-icon.vue +31 -31
- package/src/icons/sidebar/repair-object-icon.vue +18 -18
- package/src/icons/sidebar/repairs-icon.vue +20 -20
- package/src/icons/sidebar/roles-icon.vue +26 -26
- package/src/icons/sidebar/status-history-icon.vue +24 -24
- package/src/icons/sidebar/tasks-icon.vue +28 -28
- package/src/icons/sidebar/tasks_tasks-icon.vue +39 -39
- package/src/icons/sidebar/tasks_today-icon.vue +27 -27
- package/src/icons/sidebar/teams-icon.vue +32 -32
- package/src/icons/sidebar/user-icon.vue +18 -18
- package/src/icons/sidebar/users-icon.vue +46 -46
- package/src/icons/sidebar/videosources-icon.vue +19 -19
- package/src/icons/sidebar/videowall-icon.vue +13 -13
- package/src/icons/sidebar/videozones-icon.vue +21 -21
- package/src/icons/sidebar/warehouses-icon.vue +43 -43
- package/src/icons/sidebar/workshop-icon.vue +100 -100
- package/src/icons/sidebar/workzones-icon.vue +22 -22
- package/src/icons/task/attention-icon.vue +13 -13
- package/src/icons/task/clock-icon.vue +10 -10
- package/src/icons/task/delete-icon.vue +10 -10
- package/src/icons/task/fire-icon.vue +16 -16
- package/src/index.ts +126 -126
- package/src/main.ts +28 -28
- package/src/quasar-user-options.ts +17 -17
- package/src/router/index.ts +10 -10
- package/src/shared/styles/general.css +124 -124
- package/src/shims-vue.d.ts +5 -5
- package/src/styles/variables.sass +12 -12
- package/src/utils/confirm.ts +12 -12
- package/src/utils/faceApiHelper.ts +132 -132
- package/src/utils/helpers.ts +59 -59
- package/src/utils/notification.ts +9 -9
package/dist/shared-ritm.es.js
CHANGED
|
@@ -1880,10 +1880,10 @@ const Et = Ke({
|
|
|
1880
1880
|
emits: ["update:modelValue", "click"],
|
|
1881
1881
|
setup(e, { emit: n }) {
|
|
1882
1882
|
Ta((s) => ({
|
|
1883
|
-
"
|
|
1884
|
-
"
|
|
1885
|
-
"
|
|
1886
|
-
|
|
1883
|
+
"6ebd44ce": s.width,
|
|
1884
|
+
"31bb5bb4": s.height,
|
|
1885
|
+
"2efce8ab": s.borderRadius,
|
|
1886
|
+
d3196ae6: s.borderWidth
|
|
1887
1887
|
}));
|
|
1888
1888
|
const t = e, r = n;
|
|
1889
1889
|
function o(s) {
|
|
@@ -4405,7 +4405,7 @@ const by = {
|
|
|
4405
4405
|
])
|
|
4406
4406
|
]));
|
|
4407
4407
|
}
|
|
4408
|
-
}), AA = /* @__PURE__ */ Be(_y, [["__scopeId", "data-v-
|
|
4408
|
+
}), AA = /* @__PURE__ */ Be(_y, [["__scopeId", "data-v-a3ab30e6"]]), rd = {
|
|
4409
4409
|
left: !0,
|
|
4410
4410
|
right: !0,
|
|
4411
4411
|
up: !0,
|
|
@@ -6205,7 +6205,7 @@ const jy = { class: "app-input-new" }, Gy = {
|
|
|
6205
6205
|
}, 8, ["modelValue", "type", "rules", "placeholder", "disable", "readonly", "class", "error", "autocomplete"])
|
|
6206
6206
|
]));
|
|
6207
6207
|
}
|
|
6208
|
-
}), Yy = /* @__PURE__ */ Be(Xy, [["__scopeId", "data-v-
|
|
6208
|
+
}), Yy = /* @__PURE__ */ Be(Xy, [["__scopeId", "data-v-c24941bd"]]), Qy = { class: "datepicker" }, Zy = /* @__PURE__ */ Bt({
|
|
6209
6209
|
__name: "AppDatepicker",
|
|
6210
6210
|
props: /* @__PURE__ */ Kl({
|
|
6211
6211
|
label: { default: "" },
|
|
@@ -6228,10 +6228,16 @@ const jy = { class: "app-input-new" }, Gy = {
|
|
|
6228
6228
|
}, a = (c) => {
|
|
6229
6229
|
if (!n.noPastDates && !n.disableRuleDates) return !0;
|
|
6230
6230
|
const [d, f, h] = c.split("/"), p = new Date(Number(d), Number(f) - 1, Number(h));
|
|
6231
|
-
if (n.disableRuleDates)
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6231
|
+
if (p.setHours(0, 0, 0, 0), n.disableRuleDates)
|
|
6232
|
+
if (Array.isArray(n.disableRuleDates)) {
|
|
6233
|
+
const y = n.disableRuleDates[0] ? new Date(n.disableRuleDates[0]) : null;
|
|
6234
|
+
y == null || y.setHours(0, 0, 0, 0);
|
|
6235
|
+
const b = n.disableRuleDates[1] ? new Date(n.disableRuleDates[1]) : null;
|
|
6236
|
+
return b == null || b.setHours(0, 0, 0, 0), (!y || p >= y) && (!b || p <= b);
|
|
6237
|
+
} else {
|
|
6238
|
+
const y = new Date(n.disableRuleDates);
|
|
6239
|
+
return p >= y;
|
|
6240
|
+
}
|
|
6235
6241
|
const m = /* @__PURE__ */ new Date(), v = new Date(m.getFullYear(), m.getMonth(), m.getDate());
|
|
6236
6242
|
return p >= v;
|
|
6237
6243
|
};
|
|
@@ -6312,7 +6318,7 @@ const jy = { class: "app-input-new" }, Gy = {
|
|
|
6312
6318
|
}, 8, ["modelValue", "label", "required", "rules", "error", "disable"])
|
|
6313
6319
|
]));
|
|
6314
6320
|
}
|
|
6315
|
-
}), MA = /* @__PURE__ */ Be(Zy, [["__scopeId", "data-v-
|
|
6321
|
+
}), MA = /* @__PURE__ */ Be(Zy, [["__scopeId", "data-v-1f613b58"]]), Jy = /* @__PURE__ */ Bt({
|
|
6316
6322
|
__name: "AppInput",
|
|
6317
6323
|
props: {
|
|
6318
6324
|
field: { type: Boolean },
|
|
@@ -6386,7 +6392,7 @@ const jy = { class: "app-input-new" }, Gy = {
|
|
|
6386
6392
|
emits: ["update:modelValue", "button-click", "clear", "focus", "blur", "click"],
|
|
6387
6393
|
setup(e, { emit: n }) {
|
|
6388
6394
|
Ta((u) => ({
|
|
6389
|
-
"
|
|
6395
|
+
"542fbebd": u.height
|
|
6390
6396
|
}));
|
|
6391
6397
|
const t = e, r = n, o = Q(!1), a = k(() => t.type === "password" ? o.value ? "text" : "password" : t.type || "text"), i = k({
|
|
6392
6398
|
get: () => t.modelValue !== null && t.modelValue !== void 0 && t.type === "number" ? +t.modelValue : t.modelValue,
|
|
@@ -6493,8 +6499,8 @@ const jy = { class: "app-input-new" }, Gy = {
|
|
|
6493
6499
|
emits: ["update:modelValue", "button-click", "clear", "focus", "blur", "click"],
|
|
6494
6500
|
setup(e, { emit: n }) {
|
|
6495
6501
|
Ta((i) => ({
|
|
6496
|
-
"
|
|
6497
|
-
|
|
6502
|
+
"33b606d4": i.borderRadius,
|
|
6503
|
+
f2e6e6c6: i.height
|
|
6498
6504
|
}));
|
|
6499
6505
|
const t = e, r = n, o = k({
|
|
6500
6506
|
get: () => t.modelValue !== null && t.modelValue !== void 0 && t.type === "number" ? +t.modelValue : t.modelValue,
|
|
@@ -6858,7 +6864,7 @@ const Wv = typeof ResizeObserver < "u", fh = Wv === !0 ? {} : {
|
|
|
6858
6864
|
}, null, 8, ["size", "thickness"])) : Xe("", !0)
|
|
6859
6865
|
], 2));
|
|
6860
6866
|
}
|
|
6861
|
-
}), cb = /* @__PURE__ */ Be(lb, [["__scopeId", "data-v-
|
|
6867
|
+
}), cb = /* @__PURE__ */ Be(lb, [["__scopeId", "data-v-9f8ceae1"]]), db = /* @__PURE__ */ Bt({
|
|
6862
6868
|
__name: "AppLayout",
|
|
6863
6869
|
props: {
|
|
6864
6870
|
logged: { type: Boolean },
|
|
@@ -8071,8 +8077,8 @@ const Gw = /* @__PURE__ */ Be(Hw, [["render", jw]]), Kw = /* @__PURE__ */ Bt({
|
|
|
8071
8077
|
},
|
|
8072
8078
|
setup(e) {
|
|
8073
8079
|
Ta((o) => ({
|
|
8074
|
-
|
|
8075
|
-
"
|
|
8080
|
+
f542c750: o.color,
|
|
8081
|
+
"07daff28": o.size
|
|
8076
8082
|
}));
|
|
8077
8083
|
const n = e;
|
|
8078
8084
|
function t(o) {
|
|
@@ -8298,7 +8304,7 @@ function fx(e, n) {
|
|
|
8298
8304
|
_: 3
|
|
8299
8305
|
});
|
|
8300
8306
|
}
|
|
8301
|
-
const NA = /* @__PURE__ */ Be(dx, [["render", fx], ["__scopeId", "data-v-
|
|
8307
|
+
const NA = /* @__PURE__ */ Be(dx, [["render", fx], ["__scopeId", "data-v-51e4160c"]]), hx = {
|
|
8302
8308
|
xs: 8,
|
|
8303
8309
|
sm: 10,
|
|
8304
8310
|
md: 14,
|
|
@@ -9607,7 +9613,7 @@ const hd = Ke({
|
|
|
9607
9613
|
emits: ["update:modelValue"],
|
|
9608
9614
|
setup(e, { emit: n }) {
|
|
9609
9615
|
Ta((c) => ({
|
|
9610
|
-
|
|
9616
|
+
"5e128078": c.borderColor
|
|
9611
9617
|
}));
|
|
9612
9618
|
const t = e, r = Q({}), o = n, a = k({
|
|
9613
9619
|
get() {
|
|
@@ -9750,7 +9756,7 @@ const hd = Ke({
|
|
|
9750
9756
|
emits: ["update:dialogRef", "update:currentTabName"],
|
|
9751
9757
|
setup(e, { emit: n }) {
|
|
9752
9758
|
Ta((a) => ({
|
|
9753
|
-
|
|
9759
|
+
d2a8bdba: a.width
|
|
9754
9760
|
}));
|
|
9755
9761
|
const t = e, r = n, o = k({
|
|
9756
9762
|
get() {
|
|
@@ -9821,7 +9827,7 @@ const hd = Ke({
|
|
|
9821
9827
|
"sheet-dialog": "_sheet-dialog_1rkva_1"
|
|
9822
9828
|
}, Px = {
|
|
9823
9829
|
$style: Mx
|
|
9824
|
-
}, qA = /* @__PURE__ */ Be(Dx, [["__cssModules", Px], ["__scopeId", "data-v-
|
|
9830
|
+
}, qA = /* @__PURE__ */ Be(Dx, [["__cssModules", Px], ["__scopeId", "data-v-56bffd8b"]]);
|
|
9825
9831
|
let Bx = 0;
|
|
9826
9832
|
const Fx = ["click", "keydown"], Ox = {
|
|
9827
9833
|
icon: String,
|
|
@@ -10354,7 +10360,7 @@ const Vx = ["left", "center", "right", "justify"], zx = Ke({
|
|
|
10354
10360
|
tab: Xx
|
|
10355
10361
|
}, Qx = {
|
|
10356
10362
|
$style: Yx
|
|
10357
|
-
}, VA = /* @__PURE__ */ Be(Kx, [["__cssModules", Qx], ["__scopeId", "data-v-
|
|
10363
|
+
}, VA = /* @__PURE__ */ Be(Kx, [["__cssModules", Qx], ["__scopeId", "data-v-2ee4bdf1"]]), gh = 150, Zx = Ke({
|
|
10358
10364
|
name: "QDrawer",
|
|
10359
10365
|
inheritAttrs: !1,
|
|
10360
10366
|
props: {
|
|
@@ -11032,7 +11038,7 @@ const Vx = ["left", "center", "right", "justify"], zx = Ke({
|
|
|
11032
11038
|
"menu-item__label": "_menu-item__label_fkijr_18"
|
|
11033
11039
|
}, o_ = {
|
|
11034
11040
|
$style: r_
|
|
11035
|
-
}, a_ = /* @__PURE__ */ Be(n_, [["__cssModules", o_], ["__scopeId", "data-v-
|
|
11041
|
+
}, a_ = /* @__PURE__ */ Be(n_, [["__cssModules", o_], ["__scopeId", "data-v-f6a202a4"]]), i_ = /* @__PURE__ */ Bt({
|
|
11036
11042
|
__name: "SidebarMenu",
|
|
11037
11043
|
props: {
|
|
11038
11044
|
menuItems: {},
|
|
@@ -11277,7 +11283,7 @@ function b_(e, n) {
|
|
|
11277
11283
|
Qt(e.$slots, "default", {}, void 0, !0)
|
|
11278
11284
|
]);
|
|
11279
11285
|
}
|
|
11280
|
-
const WA = /* @__PURE__ */ Be(g_, [["render", b_], ["__scopeId", "data-v-
|
|
11286
|
+
const WA = /* @__PURE__ */ Be(g_, [["render", b_], ["__scopeId", "data-v-f769f373"]]), Ss = Ke({
|
|
11281
11287
|
name: "QCardSection",
|
|
11282
11288
|
props: {
|
|
11283
11289
|
tag: {
|
|
@@ -11646,7 +11652,7 @@ const V_ = Ke({
|
|
|
11646
11652
|
_: 3
|
|
11647
11653
|
}, 8, ["modelValue", "color", "content-style"]));
|
|
11648
11654
|
}
|
|
11649
|
-
}), UA = /* @__PURE__ */ Be(z_, [["__scopeId", "data-v-
|
|
11655
|
+
}), UA = /* @__PURE__ */ Be(z_, [["__scopeId", "data-v-85d0f555"]]), $_ = { class: "table-pagination" }, W_ = ["disabled"], H_ = { class: "pages" }, U_ = ["disabled", "onClick"], j_ = ["disabled"], G_ = /* @__PURE__ */ Bt({
|
|
11650
11656
|
__name: "TablePagination",
|
|
11651
11657
|
props: {
|
|
11652
11658
|
modelValue: {},
|
|
@@ -11711,7 +11717,7 @@ const V_ = Ke({
|
|
|
11711
11717
|
], 8, j_)
|
|
11712
11718
|
]));
|
|
11713
11719
|
}
|
|
11714
|
-
}), K_ = /* @__PURE__ */ Be(G_, [["__scopeId", "data-v-
|
|
11720
|
+
}), K_ = /* @__PURE__ */ Be(G_, [["__scopeId", "data-v-9db9f6f7"]]), X_ = /* @__PURE__ */ Bt({
|
|
11715
11721
|
__name: "TableSearch",
|
|
11716
11722
|
props: {
|
|
11717
11723
|
modelValue: {},
|
|
@@ -12091,7 +12097,7 @@ const V_ = Ke({
|
|
|
12091
12097
|
], 64);
|
|
12092
12098
|
};
|
|
12093
12099
|
}
|
|
12094
|
-
}), aC = /* @__PURE__ */ Be(oC, [["__scopeId", "data-v-
|
|
12100
|
+
}), aC = /* @__PURE__ */ Be(oC, [["__scopeId", "data-v-de1e6d9d"]]), iC = { class: "modal-title" }, sC = {
|
|
12095
12101
|
key: 0,
|
|
12096
12102
|
class: "field-label"
|
|
12097
12103
|
}, uC = {
|
|
@@ -12317,7 +12323,7 @@ const V_ = Ke({
|
|
|
12317
12323
|
_: 1
|
|
12318
12324
|
}, 8, ["model-value"]));
|
|
12319
12325
|
}
|
|
12320
|
-
}), jA = /* @__PURE__ */ Be(lC, [["__scopeId", "data-v-
|
|
12326
|
+
}), jA = /* @__PURE__ */ Be(lC, [["__scopeId", "data-v-b137510f"]]), yh = Ke({
|
|
12321
12327
|
name: "QTd",
|
|
12322
12328
|
props: {
|
|
12323
12329
|
props: Object,
|
|
@@ -14247,7 +14253,7 @@ const UC = /* @__PURE__ */ Be($C, [["render", HC]]), jC = {
|
|
|
14247
14253
|
]), 1032, ["selected", "rows", "columns", "selection", "table-row-style-fn"])
|
|
14248
14254
|
]));
|
|
14249
14255
|
}
|
|
14250
|
-
}), tk = /* @__PURE__ */ Be(ek, [["__scopeId", "data-v-
|
|
14256
|
+
}), tk = /* @__PURE__ */ Be(ek, [["__scopeId", "data-v-e47dea52"]]), nk = {
|
|
14251
14257
|
key: 0,
|
|
14252
14258
|
class: "table-controls"
|
|
14253
14259
|
}, rk = { class: "table-wrapper" }, ok = {
|
|
@@ -14321,7 +14327,7 @@ const UC = /* @__PURE__ */ Be($C, [["render", HC]]), jC = {
|
|
|
14321
14327
|
"modal" in Yn(o) ? Qt(u.$slots, "modal", { key: 2 }, void 0, !0) : Xe("", !0)
|
|
14322
14328
|
], 2));
|
|
14323
14329
|
}
|
|
14324
|
-
}), GA = /* @__PURE__ */ Be(ak, [["__scopeId", "data-v-
|
|
14330
|
+
}), GA = /* @__PURE__ */ Be(ak, [["__scopeId", "data-v-1b7ee59f"]]);
|
|
14325
14331
|
function tm(e, n) {
|
|
14326
14332
|
return function() {
|
|
14327
14333
|
return e.apply(n, arguments);
|
|
@@ -14630,6 +14636,8 @@ function cu(e, n, t) {
|
|
|
14630
14636
|
if (p === null) return "";
|
|
14631
14637
|
if (te.isDate(p))
|
|
14632
14638
|
return p.toISOString();
|
|
14639
|
+
if (te.isBoolean(p))
|
|
14640
|
+
return p.toString();
|
|
14633
14641
|
if (!u && te.isBlob(p))
|
|
14634
14642
|
throw new ut("Blob is not supported. Use a Buffer instead.");
|
|
14635
14643
|
return te.isArrayBuffer(p) || te.isTypedArray(p) ? u && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
@@ -15550,7 +15558,7 @@ const I3 = async (e) => {
|
|
|
15550
15558
|
duplex: "half",
|
|
15551
15559
|
credentials: y ? d : void 0
|
|
15552
15560
|
});
|
|
15553
|
-
let b = await fetch(p);
|
|
15561
|
+
let b = await fetch(p, f);
|
|
15554
15562
|
const w = pc && (l === "stream" || l === "response");
|
|
15555
15563
|
if (pc && (s || w && m)) {
|
|
15556
15564
|
const x = {};
|
|
@@ -15655,7 +15663,7 @@ function Oh(e) {
|
|
|
15655
15663
|
), r.response.headers = qn.from(r.response.headers))), Promise.reject(r);
|
|
15656
15664
|
});
|
|
15657
15665
|
}
|
|
15658
|
-
const Cm = "1.
|
|
15666
|
+
const Cm = "1.10.0", fu = {};
|
|
15659
15667
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, n) => {
|
|
15660
15668
|
fu[e] = function(r) {
|
|
15661
15669
|
return typeof r === e || "a" + (n < 1 ? "n " : " ") + e;
|
|
@@ -23914,7 +23922,7 @@ var GE = function(e, n, t) {
|
|
|
23914
23922
|
t.seedLoc == null && (t.seedLoc = r.getUniformLocation(o, "seed")), r.gl.uniform1f(t.seedLoc, n);
|
|
23915
23923
|
};
|
|
23916
23924
|
}, e;
|
|
23917
|
-
}(),
|
|
23925
|
+
}(), eR = function(e, n, t, r) {
|
|
23918
23926
|
this.variableNames = ["indices"], this.outputShape = [e, n], this.userCode = `
|
|
23919
23927
|
void main() {
|
|
23920
23928
|
ivec2 coords = getOutputCoords();
|
|
@@ -23923,7 +23931,7 @@ var GE = function(e, n, t) {
|
|
|
23923
23931
|
float(index == coords.y)));
|
|
23924
23932
|
}
|
|
23925
23933
|
`;
|
|
23926
|
-
},
|
|
23934
|
+
}, tR = function(e) {
|
|
23927
23935
|
this.variableNames = ["A"], this.packedInputs = !1, this.packedOutput = !0, this.outputShape = e;
|
|
23928
23936
|
var n = e.length;
|
|
23929
23937
|
if (n === 0) this.userCode = `
|
|
@@ -23977,7 +23985,7 @@ var GE = function(e, n, t) {
|
|
|
23977
23985
|
}
|
|
23978
23986
|
`;
|
|
23979
23987
|
}
|
|
23980
|
-
},
|
|
23988
|
+
}, nR = function(e, n, t) {
|
|
23981
23989
|
this.variableNames = ["x"], this.outputShape = n.map(function(u, l) {
|
|
23982
23990
|
return u[0] + e[l] + u[1];
|
|
23983
23991
|
});
|
|
@@ -24012,7 +24020,7 @@ var GE = function(e, n, t) {
|
|
|
24012
24020
|
}
|
|
24013
24021
|
}
|
|
24014
24022
|
`;
|
|
24015
|
-
},
|
|
24023
|
+
}, rR = function(e, n, t) {
|
|
24016
24024
|
this.variableNames = ["x"], this.packedInputs = !0, this.packedOutput = !0, this.outputShape = n.map(function(v, y) {
|
|
24017
24025
|
return v[0] + e[y] + v[1];
|
|
24018
24026
|
});
|
|
@@ -24375,7 +24383,7 @@ var GE = function(e, n, t) {
|
|
|
24375
24383
|
}
|
|
24376
24384
|
`;
|
|
24377
24385
|
}
|
|
24378
|
-
},
|
|
24386
|
+
}, oR = function(e, n) {
|
|
24379
24387
|
this.variableNames = ["x"];
|
|
24380
24388
|
var t = e.windowSize, r = e.batchSize, o = e.inSize, a = Math.ceil(o / t);
|
|
24381
24389
|
this.outputShape = [r, a];
|
|
@@ -24472,7 +24480,7 @@ var GE = function(e, n, t) {
|
|
|
24472
24480
|
setOutput(` + u + `);
|
|
24473
24481
|
}
|
|
24474
24482
|
`;
|
|
24475
|
-
},
|
|
24483
|
+
}, aR = function(e, n) {
|
|
24476
24484
|
this.variableNames = ["A"], this.packedInputs = !0, this.packedOutput = !0, this.outputShape = e;
|
|
24477
24485
|
for (var t = "", r = 0; r < 4; r++) {
|
|
24478
24486
|
var o = "thisRC = rc;";
|
|
@@ -24512,7 +24520,7 @@ var GE = function(e, n, t) {
|
|
|
24512
24520
|
setOutput(result);
|
|
24513
24521
|
}
|
|
24514
24522
|
`;
|
|
24515
|
-
},
|
|
24523
|
+
}, iR = function(e, n, t) {
|
|
24516
24524
|
this.variableNames = ["dy"], this.outputShape = [], this.outputShape = n.shape;
|
|
24517
24525
|
var r = n.shape, o = r[1], a = r[2], i = e.shape, s = i[1], u = i[2], l = [t && s > 1 ? o - 1 : o, t && u > 1 ? a - 1 : a], c = [t && s > 1 ? s - 1 : s, t && u > 1 ? u - 1 : u], d = l[0] / c[0], f = l[1] / c[1], h = 1 / d, p = 1 / f, m = 2 * Math.ceil(h) + 2, v = 2 * Math.ceil(p) + 2;
|
|
24518
24526
|
this.userCode = `
|
|
@@ -24597,7 +24605,7 @@ var GE = function(e, n, t) {
|
|
|
24597
24605
|
setOutput(accumulator);
|
|
24598
24606
|
}
|
|
24599
24607
|
`;
|
|
24600
|
-
},
|
|
24608
|
+
}, sR = function(e, n, t, r) {
|
|
24601
24609
|
this.variableNames = ["A"], this.outputShape = [];
|
|
24602
24610
|
var o = e[0], a = e[1], i = e[2], s = e[3];
|
|
24603
24611
|
this.outputShape = [o, n, t, s];
|
|
@@ -24636,7 +24644,7 @@ var GE = function(e, n, t) {
|
|
|
24636
24644
|
setOutput(newValue);
|
|
24637
24645
|
}
|
|
24638
24646
|
`;
|
|
24639
|
-
},
|
|
24647
|
+
}, uR = function(e, n, t, r) {
|
|
24640
24648
|
this.variableNames = ["A"], this.packedInputs = !0, this.packedOutput = !0, this.outputShape = [];
|
|
24641
24649
|
var o = e[0], a = e[1], i = e[2], s = e[3];
|
|
24642
24650
|
this.outputShape = [o, n, t, s];
|
|
@@ -24719,7 +24727,7 @@ var GE = function(e, n, t) {
|
|
|
24719
24727
|
setOutput(newValue);
|
|
24720
24728
|
}
|
|
24721
24729
|
`;
|
|
24722
|
-
},
|
|
24730
|
+
}, lR = function(e, n, t) {
|
|
24723
24731
|
this.variableNames = ["dy"], this.outputShape = [], this.outputShape = n.shape;
|
|
24724
24732
|
var r = n.shape, o = r[1], a = r[2], i = e.shape, s = i[1], u = i[2], l = [t && s > 1 ? o - 1 : o, t && u > 1 ? a - 1 : a], c = [t && s > 1 ? s - 1 : s, t && u > 1 ? u - 1 : u], d = l[0] / c[0], f = l[1] / c[1], h = 1 / d, p = 1 / f, m = 2 * Math.ceil(h) + 2, v = 2 * Math.ceil(p) + 2;
|
|
24725
24733
|
this.userCode = `
|
|
@@ -24793,7 +24801,7 @@ var GE = function(e, n, t) {
|
|
|
24793
24801
|
setOutput(accumulator);
|
|
24794
24802
|
}
|
|
24795
24803
|
`;
|
|
24796
|
-
},
|
|
24804
|
+
}, cR = function(e, n, t, r) {
|
|
24797
24805
|
this.variableNames = ["A"], this.outputShape = [];
|
|
24798
24806
|
var o = e[0], a = e[1], i = e[2], s = e[3];
|
|
24799
24807
|
this.outputShape = [o, n, t, s];
|
|
@@ -24822,7 +24830,7 @@ var GE = function(e, n, t) {
|
|
|
24822
24830
|
setOutput(newValue);
|
|
24823
24831
|
}
|
|
24824
24832
|
`;
|
|
24825
|
-
},
|
|
24833
|
+
}, dR = function(e, n) {
|
|
24826
24834
|
this.variableNames = ["x"];
|
|
24827
24835
|
var t = e.length;
|
|
24828
24836
|
if (t > 4) throw new Error("WebGL backend: Reverse of rank-" + t + " tensor is not yet supported");
|
|
@@ -24844,7 +24852,7 @@ var GE = function(e, n, t) {
|
|
|
24844
24852
|
setOutput(getX(` + e[0] + ` - coord - 1));
|
|
24845
24853
|
}
|
|
24846
24854
|
`;
|
|
24847
|
-
},
|
|
24855
|
+
}, fR = function(e, n) {
|
|
24848
24856
|
this.variableNames = ["x"], this.packedInputs = !0, this.packedOutput = !0;
|
|
24849
24857
|
var t = e.length;
|
|
24850
24858
|
if (t > 4) throw new Error("WebGL backend: Reverse of rank-" + t + " tensor is not yet supported");
|
|
@@ -24923,7 +24931,7 @@ var GE = function(e, n, t) {
|
|
|
24923
24931
|
setOutput(mix(getDefaultValue(), sum, float(found)));
|
|
24924
24932
|
}
|
|
24925
24933
|
`;
|
|
24926
|
-
},
|
|
24934
|
+
}, hR = function(e, n) {
|
|
24927
24935
|
this.variableNames = ["x", "segmentIds"];
|
|
24928
24936
|
var t = e.windowSize, r = e.batchSize, o = e.inSize, a = e.numSegments, i = a * Math.ceil(o / t);
|
|
24929
24937
|
this.outputShape = [r, i];
|
|
@@ -25037,7 +25045,7 @@ var GE = function(e, n, t) {
|
|
|
25037
25045
|
setOutput(sumValue);
|
|
25038
25046
|
}
|
|
25039
25047
|
`;
|
|
25040
|
-
},
|
|
25048
|
+
}, pR = function(e, n, t) {
|
|
25041
25049
|
var r, o;
|
|
25042
25050
|
if (this.variableNames = ["c", "a", "b"], this.outputShape = n, t > 4) throw Error("Where for rank " + t + " is not yet supported");
|
|
25043
25051
|
if (t === 1) o = "resRC", r = "resRC";
|
|
@@ -25057,7 +25065,7 @@ var GE = function(e, n, t) {
|
|
|
25057
25065
|
}
|
|
25058
25066
|
}
|
|
25059
25067
|
`;
|
|
25060
|
-
},
|
|
25068
|
+
}, vR = function() {
|
|
25061
25069
|
function e(n) {
|
|
25062
25070
|
this.variableNames = ["source"], this.outputShape = n, this.rank = n.length;
|
|
25063
25071
|
var t, r = Lt(this.rank), o = "uniform int start[" + this.rank + "];", a = function(i) {
|
|
@@ -25089,7 +25097,7 @@ var GE = function(e, n, t) {
|
|
|
25089
25097
|
t.startLoc == null && (t.startLoc = r.getUniformLocationNoThrow(o, "start"), t.startLoc == null) || r.gl.uniform1iv(t.startLoc, n);
|
|
25090
25098
|
};
|
|
25091
25099
|
}, e;
|
|
25092
|
-
}(), Fl = ["x", "y", "z", "w", "u", "v"],
|
|
25100
|
+
}(), Fl = ["x", "y", "z", "w", "u", "v"], mR = function() {
|
|
25093
25101
|
function e(n) {
|
|
25094
25102
|
this.variableNames = ["source"], this.packedInputs = !0, this.packedOutput = !0, this.outputShape = n, this.rank = n.length;
|
|
25095
25103
|
var t = Lt(this.rank), r = Bn("coords", this.rank), o = Bn("sourceLoc", this.rank), a = this.rank === 1 ? "sourceLoc" : "vec2(" + o.slice(-2).join() + ")", i = "getChannel(getSource(" + o.join() + "), " + a + ")", s = `
|
|
@@ -25136,7 +25144,7 @@ var GE = function(e, n, t) {
|
|
|
25136
25144
|
t.startLoc == null && (t.startLoc = r.getUniformLocationNoThrow(o, "start"), t.startLoc == null) || r.gl.uniform1iv(t.startLoc, n);
|
|
25137
25145
|
};
|
|
25138
25146
|
}, e;
|
|
25139
|
-
}(),
|
|
25147
|
+
}(), gR = function(e, n, t) {
|
|
25140
25148
|
this.variableNames = ["x"], this.outputShape = t;
|
|
25141
25149
|
var r = t.length, o = Lt(t.length), a = Lt(t.length), i = "";
|
|
25142
25150
|
if (r === 1) i = "coords * strides + begin";
|
|
@@ -25155,7 +25163,7 @@ var GE = function(e, n, t) {
|
|
|
25155
25163
|
setOutput(getX(` + i + `));
|
|
25156
25164
|
}
|
|
25157
25165
|
`;
|
|
25158
|
-
},
|
|
25166
|
+
}, yR = function() {
|
|
25159
25167
|
function e(n) {
|
|
25160
25168
|
this.gpgpu = n, this.numUsedTextures = 0, this.numFreeTextures = 0, this.freeTextures = {}, this.logEnabled = !1, this.usedTextures = {};
|
|
25161
25169
|
}
|
|
@@ -25208,7 +25216,7 @@ function sp(e, n) {
|
|
|
25208
25216
|
function up(e, n, t) {
|
|
25209
25217
|
return e[0] + "_" + e[1] + "_" + n + "_" + t;
|
|
25210
25218
|
}
|
|
25211
|
-
var
|
|
25219
|
+
var bR = function(e, n) {
|
|
25212
25220
|
this.variableNames = ["A"];
|
|
25213
25221
|
for (var t = new Array(e.length), r = 0; r < t.length; r++) t[r] = e[r] * n[r];
|
|
25214
25222
|
this.outputShape = t, this.rank = t.length;
|
|
@@ -25225,7 +25233,7 @@ var b5 = function(e, n) {
|
|
|
25225
25233
|
setOutput(getA(` + a + `));
|
|
25226
25234
|
}
|
|
25227
25235
|
`;
|
|
25228
|
-
},
|
|
25236
|
+
}, wR = function(e, n) {
|
|
25229
25237
|
this.variableNames = ["A"];
|
|
25230
25238
|
for (var t = new Array(e.length), r = 0; r < t.length; r++) t[r] = e[n[r]];
|
|
25231
25239
|
this.outputShape = t, this.rank = t.length;
|
|
@@ -25241,7 +25249,7 @@ var b5 = function(e, n) {
|
|
|
25241
25249
|
setOutput(getA(` + a + `));
|
|
25242
25250
|
}
|
|
25243
25251
|
`;
|
|
25244
|
-
},
|
|
25252
|
+
}, xR = function(e, n) {
|
|
25245
25253
|
this.variableNames = ["A"], this.packedInputs = !0, this.packedOutput = !0;
|
|
25246
25254
|
for (var t = new Array(e.length), r = 0; r < t.length; r++) t[r] = e[n[r]];
|
|
25247
25255
|
if (this.outputShape = t, this.rank = t.length, this.rank > 6) throw Error("Packed transpose for rank " + this.rank + " is not yet supported.");
|
|
@@ -25279,37 +25287,37 @@ var b5 = function(e, n) {
|
|
|
25279
25287
|
setOutput(y);
|
|
25280
25288
|
}
|
|
25281
25289
|
`;
|
|
25282
|
-
}, vr = "if (isnan(x)) return x;",
|
|
25290
|
+
}, vr = "if (isnan(x)) return x;", _R = "return x;", lp = "return abs(x);", pg = vr + `
|
|
25283
25291
|
return (x < 0.0) ? 0.0 : x;
|
|
25284
25292
|
`, vg = vr + `
|
|
25285
25293
|
return (x < 0.0) ? 0.0 : min(6.0, x);
|
|
25286
|
-
`, mg = "return (x >= 0.0) ? x : (exp(x) - 1.0);",
|
|
25294
|
+
`, mg = "return (x >= 0.0) ? x : (exp(x) - 1.0);", CR = `
|
|
25287
25295
|
// Stable and Attracting Fixed Point (0, 1) for Normalized Weights.
|
|
25288
25296
|
// see: https://arxiv.org/abs/1706.02515
|
|
25289
25297
|
float scaleAlpha = ` + Dd + `;
|
|
25290
25298
|
float scale = ` + Md + `;
|
|
25291
25299
|
return (x >= 0.0) ? scale * x : scaleAlpha * (exp(x) - 1.0);
|
|
25292
|
-
`, cp = "return -x;", dp = "return ceil(x);", fp = "return floor(x);", hp = "return exp(x);", pp = "return exp(x) - 1.0;",
|
|
25300
|
+
`, cp = "return -x;", dp = "return ceil(x);", fp = "return floor(x);", hp = "return exp(x);", pp = "return exp(x) - 1.0;", kR = vr + `
|
|
25293
25301
|
return sin(x);
|
|
25294
|
-
`,
|
|
25302
|
+
`, SR = vr + `
|
|
25295
25303
|
return cos(x);
|
|
25296
|
-
`,
|
|
25304
|
+
`, ER = vr + `
|
|
25297
25305
|
if (abs(x) > 1.) {
|
|
25298
25306
|
return NAN;
|
|
25299
25307
|
}
|
|
25300
25308
|
return asin(x);
|
|
25301
|
-
`,
|
|
25309
|
+
`, RR = vr + `
|
|
25302
25310
|
if (abs(x) > 1.) {
|
|
25303
25311
|
return NAN;
|
|
25304
25312
|
}
|
|
25305
25313
|
return acos(x);
|
|
25306
|
-
`,
|
|
25314
|
+
`, IR = vr + `
|
|
25307
25315
|
return atan(x);
|
|
25308
|
-
`,
|
|
25316
|
+
`, TR = vr + "return log(x + sqrt(x * x + 1.0));", AR = vr + `
|
|
25309
25317
|
if (x < 1.0) return NAN;
|
|
25310
|
-
return log(x + sqrt(x * x - 1.0));`,
|
|
25318
|
+
return log(x + sqrt(x * x - 1.0));`, DR = vr + `
|
|
25311
25319
|
if ((x < -1.0) || (x > 1.0)) return NAN;
|
|
25312
|
-
return (log(1.0 + x) - log(1.0 - x)) / 2.0;`, Gi = "return x;",
|
|
25320
|
+
return (log(1.0 + x) - log(1.0 - x)) / 2.0;`, Gi = "return x;", MR = "return x;", gg = `
|
|
25313
25321
|
vec4 result = x * vec4(greaterThanEqual(x, vec4(0.0)));
|
|
25314
25322
|
bvec4 isNaN = isnan(x);
|
|
25315
25323
|
|
|
@@ -25351,7 +25359,7 @@ var b5 = function(e, n) {
|
|
|
25351
25359
|
setOutput(y);
|
|
25352
25360
|
}
|
|
25353
25361
|
`;
|
|
25354
|
-
},
|
|
25362
|
+
}, PR = function(e) {
|
|
25355
25363
|
this.variableNames = ["A"], this.packedInputs = !0, this.packedOutput = !1, this.outputShape = e;
|
|
25356
25364
|
var n = e.length, t = Bn("rc", n), r = Lt(n), o = function(s, u) {
|
|
25357
25365
|
if (s === 1) return "rc";
|
|
@@ -25368,14 +25376,14 @@ var b5 = function(e, n) {
|
|
|
25368
25376
|
`;
|
|
25369
25377
|
}, Ki = {};
|
|
25370
25378
|
function Xi(e, n) {
|
|
25371
|
-
if (n === void 0 && (n = !1), e === "linear") return n ?
|
|
25379
|
+
if (n === void 0 && (n = !1), e === "linear") return n ? MR : _R;
|
|
25372
25380
|
if (e === "relu") return n ? gg : pg;
|
|
25373
25381
|
if (e === "elu") return n ? bg : mg;
|
|
25374
25382
|
if (e === "relu6") return n ? yg : vg;
|
|
25375
25383
|
if (e === "prelu") return n ? hg : fg;
|
|
25376
25384
|
throw new Error("Activation " + e + " has not been implemented for the WebGL backend.");
|
|
25377
25385
|
}
|
|
25378
|
-
var
|
|
25386
|
+
var BR = 600, FR = function(e) {
|
|
25379
25387
|
function n(t) {
|
|
25380
25388
|
var r, o = e.call(this) || this;
|
|
25381
25389
|
if (o.pendingRead = /* @__PURE__ */ new WeakMap(), o.pendingDisposal = /* @__PURE__ */ new WeakSet(), o.dataRefCount = /* @__PURE__ */ new WeakMap(), o.numBytesInGPU = 0, o.uploadWaitMs = 0, o.downloadWaitMs = 0, o.warnedAboutMemory = !1, o.pendingDeletes = 0, o.disposed = !1, !ie().getBool("HAS_WEBGL")) throw new Error("WebGL is not supported on this device");
|
|
@@ -25383,7 +25391,7 @@ var B5 = 600, F5 = function(e) {
|
|
|
25383
25391
|
var a = Dr(ie().getNumber("WEBGL_VERSION"));
|
|
25384
25392
|
o.binaryCache = ((r = ie().getNumber("WEBGL_VERSION")) in Ki || (Ki[r] = {}), Ki[r]), o.gpgpu = new jE(a), o.canvas = a.canvas, o.gpgpuCreatedLocally = !0;
|
|
25385
25393
|
} else o.gpgpu = t, o.binaryCache = {}, o.gpgpuCreatedLocally = !1, o.canvas = t.gl.canvas;
|
|
25386
|
-
return o.textureManager = new
|
|
25394
|
+
return o.textureManager = new yR(o.gpgpu), o.numMBBeforeWarning = ie().global.screen == null ? 1024 : ie().global.screen.height * ie().global.screen.width * window.devicePixelRatio * BR / 1024 / 1024, o.texData = new eg(o, U), o;
|
|
25387
25395
|
}
|
|
25388
25396
|
return pr(n, e), n.prototype.numDataIds = function() {
|
|
25389
25397
|
return this.texData.numDataIds() + (this.cpuBackend ? this.cpuBackend.numDataIds() : 0) - this.pendingDeletes;
|
|
@@ -25530,7 +25538,7 @@ var B5 = 600, F5 = function(e) {
|
|
|
25530
25538
|
if (Fe(o) === 0) return wn([], o, t.dtype);
|
|
25531
25539
|
var a = this.texData.get(t.dataId).isPacked, i = Zm(t.shape, r, o);
|
|
25532
25540
|
if (a || !i) {
|
|
25533
|
-
var s = ie().getBool("WEBGL_PACK_ARRAY_OPERATIONS") ? new
|
|
25541
|
+
var s = ie().getBool("WEBGL_PACK_ARRAY_OPERATIONS") ? new mR(o) : new vR(o), u = s.getCustomSetupFunc(r);
|
|
25534
25542
|
return this.compileAndRun(s, [t], null, u);
|
|
25535
25543
|
}
|
|
25536
25544
|
return this.uploadToGPU(t.dataId), this.shallowSlice(t, r, o);
|
|
@@ -25547,10 +25555,10 @@ var B5 = 600, F5 = function(e) {
|
|
|
25547
25555
|
if (i.some(function(u) {
|
|
25548
25556
|
return u === 0;
|
|
25549
25557
|
})) return wn([], i);
|
|
25550
|
-
var s = new
|
|
25558
|
+
var s = new gR(r, a, i);
|
|
25551
25559
|
return this.compileAndRun(s, [t]);
|
|
25552
25560
|
}, n.prototype.reverse = function(t, r) {
|
|
25553
|
-
var o = ie().getBool("WEBGL_PACK_ARRAY_OPERATIONS") ? new
|
|
25561
|
+
var o = ie().getBool("WEBGL_PACK_ARRAY_OPERATIONS") ? new fR(t.shape, r) : new dR(t.shape, r);
|
|
25554
25562
|
return this.compileAndRun(o, [t]);
|
|
25555
25563
|
}, n.prototype.concat = function(t, r) {
|
|
25556
25564
|
if (t[0].dtype === "complex64") {
|
|
@@ -25630,14 +25638,14 @@ var B5 = 600, F5 = function(e) {
|
|
|
25630
25638
|
});
|
|
25631
25639
|
return sg(ot(t.shape, t.dtype, o), r);
|
|
25632
25640
|
}
|
|
25633
|
-
var a = new
|
|
25641
|
+
var a = new bR(t.shape, r);
|
|
25634
25642
|
return this.compileAndRun(a, [t]);
|
|
25635
25643
|
}, n.prototype.pad = function(t, r, o) {
|
|
25636
|
-
var a = ie().getBool("WEBGL_PACK_ARRAY_OPERATIONS") ? new
|
|
25644
|
+
var a = ie().getBool("WEBGL_PACK_ARRAY_OPERATIONS") ? new rR(t.shape, r, o) : new nR(t.shape, r, o);
|
|
25637
25645
|
return this.compileAndRun(a, [t]);
|
|
25638
25646
|
}, n.prototype.transpose = function(t, r) {
|
|
25639
25647
|
if (this.shouldExecuteOnCPU([t])) return this.cpuBackend.transpose(t, r);
|
|
25640
|
-
var o = ie().getBool("WEBGL_PACK_ARRAY_OPERATIONS") ? new
|
|
25648
|
+
var o = ie().getBool("WEBGL_PACK_ARRAY_OPERATIONS") ? new xR(t.shape, r) : new wR(t.shape, r);
|
|
25641
25649
|
return this.compileAndRun(o, [t]);
|
|
25642
25650
|
}, n.prototype.gather = function(t, r, o) {
|
|
25643
25651
|
if (this.shouldExecuteOnCPU([t, r])) return this.cpuBackend.gather(t, r, o);
|
|
@@ -25663,7 +25671,7 @@ var B5 = 600, F5 = function(e) {
|
|
|
25663
25671
|
var u = t.pad(i), l = Os(u.shape, r, a, !1), c = Ns(l.length, r.length, !1), d = Ls(u.shape, r, a, !1);
|
|
25664
25672
|
return u.reshape(l).transpose(c).reshape(d);
|
|
25665
25673
|
}, n.prototype.reduce = function(t, r, o) {
|
|
25666
|
-
var a = t.shape[0], i = t.shape[1], s = Tl(i), u = new
|
|
25674
|
+
var a = t.shape[0], i = t.shape[1], s = Tl(i), u = new oR({ windowSize: s, inSize: i, batchSize: a }, r), l = this.compileAndRun(u, [t], o);
|
|
25667
25675
|
return l.shape[1] === 1 ? l : this.reduce(l, r, o);
|
|
25668
25676
|
}, n.prototype.argReduce = function(t, r, o) {
|
|
25669
25677
|
o === void 0 && (o = null);
|
|
@@ -25698,7 +25706,7 @@ var B5 = 600, F5 = function(e) {
|
|
|
25698
25706
|
var p, m = !1;
|
|
25699
25707
|
for (f <= Qm ? (p = f, m = !0) : p = xc(f, Math.floor(Math.sqrt(f))); !m; ) p > h || p === f ? m = !0 : p = xc(f, p + 1);
|
|
25700
25708
|
return p;
|
|
25701
|
-
}(u, i), c = new
|
|
25709
|
+
}(u, i), c = new hR({ windowSize: l, inSize: u, batchSize: s, numSegments: i }), d = this.compileAndRun(c, [t, o], a);
|
|
25702
25710
|
return d.shape[1] === i ? d : (o = Fs(0, i).tile([u / l]), this.segOpCompute(d, r, o, a, i));
|
|
25703
25711
|
}, n.prototype.argMinMaxReduce = function(t, r, o) {
|
|
25704
25712
|
var a = [r];
|
|
@@ -25774,7 +25782,7 @@ var B5 = 600, F5 = function(e) {
|
|
|
25774
25782
|
var o = new Gt("return float(a >= 1.0 || b >= 1.0);", t.shape, r.shape);
|
|
25775
25783
|
return this.compileAndRun(o, [t, r], "bool");
|
|
25776
25784
|
}, n.prototype.select = function(t, r, o) {
|
|
25777
|
-
var a = new
|
|
25785
|
+
var a = new pR(t.rank, r.shape, r.rank);
|
|
25778
25786
|
return this.compileAndRun(a, [t, r, o], bn(r.dtype, o.dtype));
|
|
25779
25787
|
}, n.prototype.where = function(t) {
|
|
25780
25788
|
Ps("tf.where() in webgl locks the UI thread. Call tf.whereAsync() instead");
|
|
@@ -26093,7 +26101,7 @@ return (round(mod(b, 2.0)) != 1) ?
|
|
|
26093
26101
|
`, t.shape, r.shape) : new Gt("return (b >= 1.0) ? a : a * (b + 1.0);", t.shape, r.shape);
|
|
26094
26102
|
return this.compileAndRun(o, [t, r]);
|
|
26095
26103
|
}, n.prototype.selu = function(t) {
|
|
26096
|
-
var r = new lt(t.shape,
|
|
26104
|
+
var r = new lt(t.shape, CR);
|
|
26097
26105
|
return this.compileAndRun(r, [t]);
|
|
26098
26106
|
}, n.prototype.int = function(t) {
|
|
26099
26107
|
var r = new lt(t.shape, "return float(int(x));");
|
|
@@ -26136,22 +26144,22 @@ return (round(mod(b, 2.0)) != 1) ?
|
|
|
26136
26144
|
`);
|
|
26137
26145
|
return this.compileAndRun(r, [t]);
|
|
26138
26146
|
}, n.prototype.sin = function(t) {
|
|
26139
|
-
var r = new lt(t.shape,
|
|
26147
|
+
var r = new lt(t.shape, kR);
|
|
26140
26148
|
return this.compileAndRun(r, [t]);
|
|
26141
26149
|
}, n.prototype.cos = function(t) {
|
|
26142
|
-
var r = new lt(t.shape,
|
|
26150
|
+
var r = new lt(t.shape, SR);
|
|
26143
26151
|
return this.compileAndRun(r, [t]);
|
|
26144
26152
|
}, n.prototype.tan = function(t) {
|
|
26145
26153
|
var r = new lt(t.shape, "return tan(x);");
|
|
26146
26154
|
return this.compileAndRun(r, [t]);
|
|
26147
26155
|
}, n.prototype.asin = function(t) {
|
|
26148
|
-
var r = new lt(t.shape,
|
|
26156
|
+
var r = new lt(t.shape, ER);
|
|
26149
26157
|
return this.compileAndRun(r, [t]);
|
|
26150
26158
|
}, n.prototype.acos = function(t) {
|
|
26151
|
-
var r = new lt(t.shape,
|
|
26159
|
+
var r = new lt(t.shape, RR);
|
|
26152
26160
|
return this.compileAndRun(r, [t]);
|
|
26153
26161
|
}, n.prototype.atan = function(t) {
|
|
26154
|
-
var r = new lt(t.shape,
|
|
26162
|
+
var r = new lt(t.shape, IR);
|
|
26155
26163
|
return this.compileAndRun(r, [t]);
|
|
26156
26164
|
}, n.prototype.atan2 = function(t, r) {
|
|
26157
26165
|
var o = ie().getBool("WEBGL_PACK_BINARY_OPERATIONS") ? new qr(`
|
|
@@ -26190,13 +26198,13 @@ return (round(mod(b, 2.0)) != 1) ?
|
|
|
26190
26198
|
`);
|
|
26191
26199
|
return this.compileAndRun(r, [t]);
|
|
26192
26200
|
}, n.prototype.asinh = function(t) {
|
|
26193
|
-
var r = new lt(t.shape,
|
|
26201
|
+
var r = new lt(t.shape, TR);
|
|
26194
26202
|
return this.compileAndRun(r, [t]);
|
|
26195
26203
|
}, n.prototype.acosh = function(t) {
|
|
26196
|
-
var r = new lt(t.shape,
|
|
26204
|
+
var r = new lt(t.shape, AR);
|
|
26197
26205
|
return this.compileAndRun(r, [t]);
|
|
26198
26206
|
}, n.prototype.atanh = function(t) {
|
|
26199
|
-
var r = new lt(t.shape,
|
|
26207
|
+
var r = new lt(t.shape, DR);
|
|
26200
26208
|
return this.compileAndRun(r, [t]);
|
|
26201
26209
|
}, n.prototype.erf = function(t) {
|
|
26202
26210
|
var r = new lt(t.shape, `
|
|
@@ -26321,22 +26329,22 @@ return (round(mod(b, 2.0)) != 1) ?
|
|
|
26321
26329
|
}
|
|
26322
26330
|
return Tc(t, r);
|
|
26323
26331
|
}, n.prototype.resizeBilinear = function(t, r, o, a) {
|
|
26324
|
-
var i = ie().getBool("WEBGL_PACK_IMAGE_OPERATIONS") ? new
|
|
26332
|
+
var i = ie().getBool("WEBGL_PACK_IMAGE_OPERATIONS") ? new uR(t.shape, r, o, a) : new sR(t.shape, r, o, a);
|
|
26325
26333
|
return this.compileAndRun(i, [t], "float32");
|
|
26326
26334
|
}, n.prototype.resizeBilinearBackprop = function(t, r, o) {
|
|
26327
|
-
var a = new
|
|
26335
|
+
var a = new iR(t, r, o);
|
|
26328
26336
|
return this.compileAndRun(a, [t]);
|
|
26329
26337
|
}, n.prototype.resizeNearestNeighbor = function(t, r, o, a) {
|
|
26330
|
-
var i = new
|
|
26338
|
+
var i = new cR(t.shape, r, o, a);
|
|
26331
26339
|
return this.compileAndRun(i, [t]);
|
|
26332
26340
|
}, n.prototype.resizeNearestNeighborBackprop = function(t, r, o) {
|
|
26333
|
-
var a = new
|
|
26341
|
+
var a = new lR(t, r, o);
|
|
26334
26342
|
return this.compileAndRun(a, [t]);
|
|
26335
26343
|
}, n.prototype.multinomial = function(t, r, o, a) {
|
|
26336
26344
|
var i = r ? t : jr(t), s = i.shape[0], u = i.shape[1], l = new JE(s, u, o), c = l.getCustomSetupFunc(a);
|
|
26337
26345
|
return this.compileAndRun(l, [i], "int32", c);
|
|
26338
26346
|
}, n.prototype.oneHot = function(t, r, o, a) {
|
|
26339
|
-
var i = new
|
|
26347
|
+
var i = new eR(t.size, r, o, a);
|
|
26340
26348
|
return this.compileAndRun(i, [t]);
|
|
26341
26349
|
}, n.prototype.diag = function(t) {
|
|
26342
26350
|
var r = new wE(t.size);
|
|
@@ -26393,13 +26401,13 @@ return (round(mod(b, 2.0)) != 1) ?
|
|
|
26393
26401
|
var o = this.makeTensorInfo(t, r).dataId;
|
|
26394
26402
|
return U.makeTensorFromDataId(o, t, r, this);
|
|
26395
26403
|
}, n.prototype.unpackTensor = function(t) {
|
|
26396
|
-
var r = new
|
|
26404
|
+
var r = new PR(t.shape);
|
|
26397
26405
|
return this.runWebGLProgram(r, [t], t.dtype);
|
|
26398
26406
|
}, n.prototype.packTensor = function(t) {
|
|
26399
|
-
var r = new
|
|
26407
|
+
var r = new tR(t.shape);
|
|
26400
26408
|
return this.runWebGLProgram(r, [t], t.dtype, null, !0);
|
|
26401
26409
|
}, n.prototype.packedReshape = function(t, r) {
|
|
26402
|
-
var o = [Ds(t.shape)].concat(Ms(t.shape)), a = { dtype: t.dtype, shape: o, dataId: t.dataId }, i = [Ds(r)].concat(Ms(r)), s = new
|
|
26410
|
+
var o = [Ds(t.shape)].concat(Ms(t.shape)), a = { dtype: t.dtype, shape: o, dataId: t.dataId }, i = [Ds(r)].concat(Ms(r)), s = new aR(i, o), u = this.runWebGLProgram(s, [a], t.dtype, null, !0);
|
|
26403
26411
|
return { dataId: u.dataId, shape: r, dtype: u.dtype };
|
|
26404
26412
|
}, n.prototype.decode = function(t) {
|
|
26405
26413
|
var r, o = this.texData.get(t), a = o.isPacked, i = o.shape, s = o.dtype, u = Il(i);
|
|
@@ -26537,9 +26545,9 @@ return (round(mod(b, 2.0)) != 1) ?
|
|
|
26537
26545
|
}, n;
|
|
26538
26546
|
}(tg);
|
|
26539
26547
|
qm() && U.registerBackend("webgl", function() {
|
|
26540
|
-
return new
|
|
26548
|
+
return new FR();
|
|
26541
26549
|
}, 2);
|
|
26542
|
-
var
|
|
26550
|
+
var OR = z({ square_: function(e) {
|
|
26543
26551
|
var n = A(e, "x", "square"), t = [n];
|
|
26544
26552
|
return U.runKernelFunc(function(r, o) {
|
|
26545
26553
|
return o([n]), r.square(n);
|
|
@@ -26559,7 +26567,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26559
26567
|
return s.mul(c.sub(l).mul(d));
|
|
26560
26568
|
} };
|
|
26561
26569
|
}, di, {}, i, []);
|
|
26562
|
-
} }),
|
|
26570
|
+
} }), NR = z({ abs_: function(e) {
|
|
26563
26571
|
var n = A(e, "x", "abs");
|
|
26564
26572
|
return n.dtype === "complex64" ? U.runKernelFunc(function(t) {
|
|
26565
26573
|
return t.complexAbs(n);
|
|
@@ -26572,7 +26580,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26572
26580
|
return t.mul(o.toFloat().step(-1));
|
|
26573
26581
|
} };
|
|
26574
26582
|
}, "Abs");
|
|
26575
|
-
} }),
|
|
26583
|
+
} }), LR = z({ acos_: function(e) {
|
|
26576
26584
|
var n = A(e, "x", "acos");
|
|
26577
26585
|
return U.runKernelFunc(function(t, r) {
|
|
26578
26586
|
var o = t.acos(n);
|
|
@@ -26583,7 +26591,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26583
26591
|
return t.divStrict(we(1).sub(o.toFloat().square()).sqrt()).neg();
|
|
26584
26592
|
} };
|
|
26585
26593
|
});
|
|
26586
|
-
} }),
|
|
26594
|
+
} }), qR = z({ acosh_: function(e) {
|
|
26587
26595
|
var n = A(e, "x", "acosh");
|
|
26588
26596
|
return U.runKernelFunc(function(t, r) {
|
|
26589
26597
|
var o = t.acosh(n);
|
|
@@ -26594,7 +26602,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26594
26602
|
return t.divStrict(o.toFloat().square().sub(1).sqrt());
|
|
26595
26603
|
} };
|
|
26596
26604
|
});
|
|
26597
|
-
} }),
|
|
26605
|
+
} }), VR = z({ asin_: function(e) {
|
|
26598
26606
|
var n = A(e, "x", "asin");
|
|
26599
26607
|
return U.runKernelFunc(function(t, r) {
|
|
26600
26608
|
var o = t.asin(n);
|
|
@@ -26605,7 +26613,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26605
26613
|
return t.divStrict(we(1).sub(o.toFloat().square()).sqrt());
|
|
26606
26614
|
} };
|
|
26607
26615
|
});
|
|
26608
|
-
} }),
|
|
26616
|
+
} }), zR = z({ asinh_: function(e) {
|
|
26609
26617
|
var n = A(e, "x", "asinh");
|
|
26610
26618
|
return U.runKernelFunc(function(t, r) {
|
|
26611
26619
|
var o = t.asinh(n);
|
|
@@ -26616,7 +26624,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26616
26624
|
return t.divStrict(we(1).add(o.toFloat().square()).sqrt());
|
|
26617
26625
|
} };
|
|
26618
26626
|
});
|
|
26619
|
-
} }), $
|
|
26627
|
+
} }), $R = z({ atan_: function(e) {
|
|
26620
26628
|
var n = A(e, "x", "atan");
|
|
26621
26629
|
return U.runKernelFunc(function(t, r) {
|
|
26622
26630
|
var o = t.atan(n);
|
|
@@ -26627,7 +26635,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26627
26635
|
return t.div(o.toFloat().square().add(1));
|
|
26628
26636
|
} };
|
|
26629
26637
|
});
|
|
26630
|
-
} }),
|
|
26638
|
+
} }), WR = z({ atanh_: function(e) {
|
|
26631
26639
|
var n = A(e, "x", "atanh");
|
|
26632
26640
|
return U.runKernelFunc(function(t, r) {
|
|
26633
26641
|
var o = t.atanh(n);
|
|
@@ -26638,7 +26646,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26638
26646
|
return t.div(we(1).sub(o.toFloat().square()));
|
|
26639
26647
|
} };
|
|
26640
26648
|
});
|
|
26641
|
-
} }),
|
|
26649
|
+
} }), HR = z({ ceil_: function(e) {
|
|
26642
26650
|
var n = A(e, "x", "ceil");
|
|
26643
26651
|
return U.runKernelFunc(function(t) {
|
|
26644
26652
|
return t.ceil(n);
|
|
@@ -26662,7 +26670,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26662
26670
|
return i.where(u.greaterEqual(n).logicalAnd(u.lessEqual(t)), yt(i));
|
|
26663
26671
|
} };
|
|
26664
26672
|
}, "ClipByValue", a, o);
|
|
26665
|
-
} }),
|
|
26673
|
+
} }), UR = z({ cos_: function(e) {
|
|
26666
26674
|
var n = A(e, "x", "cos"), t = [n];
|
|
26667
26675
|
return U.runKernelFunc(function(r, o) {
|
|
26668
26676
|
var a = r.cos(n);
|
|
@@ -26673,7 +26681,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26673
26681
|
return a.toFloat().sin().neg().mul(r);
|
|
26674
26682
|
} };
|
|
26675
26683
|
}, "Cos", {}, t);
|
|
26676
|
-
} }),
|
|
26684
|
+
} }), jR = z({ cosh_: function(e) {
|
|
26677
26685
|
var n = A(e, "x", "cosh");
|
|
26678
26686
|
return U.runKernelFunc(function(t, r) {
|
|
26679
26687
|
var o = t.cosh(n);
|
|
@@ -26684,7 +26692,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26684
26692
|
return o.toFloat().sinh().mulStrict(t);
|
|
26685
26693
|
} };
|
|
26686
26694
|
});
|
|
26687
|
-
} }),
|
|
26695
|
+
} }), GR = z({ erf_: function(e) {
|
|
26688
26696
|
var n = A(e, "x", "erf");
|
|
26689
26697
|
return P(n.dtype === "int32" || n.dtype === "float32", function() {
|
|
26690
26698
|
return "Input dtype must be `int32` or `float32`.";
|
|
@@ -26707,7 +26715,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26707
26715
|
return t.mulStrict(r[0]);
|
|
26708
26716
|
} };
|
|
26709
26717
|
}, "Exp", {}, [], [!0]);
|
|
26710
|
-
} }),
|
|
26718
|
+
} }), KR = z({ expm1_: function(e) {
|
|
26711
26719
|
var n = A(e, "x", "expm1");
|
|
26712
26720
|
return U.runKernelFunc(function(t, r) {
|
|
26713
26721
|
var o = t.expm1(n);
|
|
@@ -26718,7 +26726,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26718
26726
|
return t.mul(o.exp());
|
|
26719
26727
|
} };
|
|
26720
26728
|
});
|
|
26721
|
-
} }),
|
|
26729
|
+
} }), XR = z({ floor_: function(e) {
|
|
26722
26730
|
var n = A(e, "x", "floor");
|
|
26723
26731
|
return U.runKernelFunc(function(t) {
|
|
26724
26732
|
return t.floor(n);
|
|
@@ -26727,7 +26735,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26727
26735
|
return yt(t);
|
|
26728
26736
|
} };
|
|
26729
26737
|
});
|
|
26730
|
-
} }),
|
|
26738
|
+
} }), YR = z({ log_: function(e) {
|
|
26731
26739
|
var n = A(e, "x", "log"), t = [n];
|
|
26732
26740
|
return U.runKernelFunc(function(r, o) {
|
|
26733
26741
|
var a = r.log(n);
|
|
@@ -26738,7 +26746,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26738
26746
|
return r.div(a.toFloat());
|
|
26739
26747
|
} };
|
|
26740
26748
|
}, "Log", {}, t);
|
|
26741
|
-
} }),
|
|
26749
|
+
} }), QR = z({ log1p_: function(e) {
|
|
26742
26750
|
var n = A(e, "x", "log1p");
|
|
26743
26751
|
return U.runKernelFunc(function(t, r) {
|
|
26744
26752
|
var o = t.log1p(n);
|
|
@@ -26749,7 +26757,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26749
26757
|
return t.div(o.add(1));
|
|
26750
26758
|
} };
|
|
26751
26759
|
});
|
|
26752
|
-
} }),
|
|
26760
|
+
} }), ZR = z({ logSigmoid_: function(e) {
|
|
26753
26761
|
var n = A(e, "x", "logSigmoid");
|
|
26754
26762
|
return U.runKernelFunc(function(t, r) {
|
|
26755
26763
|
var o = t.softplus(n.neg()).neg();
|
|
@@ -26769,7 +26777,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26769
26777
|
return r.neg();
|
|
26770
26778
|
} };
|
|
26771
26779
|
}, "Neg", {}, t);
|
|
26772
|
-
} }),
|
|
26780
|
+
} }), JR = z({ reciprocal_: function(e) {
|
|
26773
26781
|
var n = A(e, "x", "reciprocal");
|
|
26774
26782
|
return U.runKernelFunc(function(t, r) {
|
|
26775
26783
|
var o = t.reciprocal(n);
|
|
@@ -26780,7 +26788,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26780
26788
|
return t.div(o.square().neg());
|
|
26781
26789
|
} };
|
|
26782
26790
|
});
|
|
26783
|
-
} }),
|
|
26791
|
+
} }), e5 = z({ round_: function(e) {
|
|
26784
26792
|
var n = A(e, "x", "round");
|
|
26785
26793
|
return U.runKernelFunc(function(t) {
|
|
26786
26794
|
return t.round(n);
|
|
@@ -26811,7 +26819,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26811
26819
|
return t.mul(o.mul(we(1).sub(o)));
|
|
26812
26820
|
} };
|
|
26813
26821
|
}, "Sigmoid");
|
|
26814
|
-
} }),
|
|
26822
|
+
} }), t5 = z({ sign_: function(e) {
|
|
26815
26823
|
var n = A(e, "x", "sign");
|
|
26816
26824
|
return U.runKernelFunc(function(t) {
|
|
26817
26825
|
return t.sign(n);
|
|
@@ -26820,7 +26828,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26820
26828
|
return yt(t);
|
|
26821
26829
|
} };
|
|
26822
26830
|
});
|
|
26823
|
-
} }),
|
|
26831
|
+
} }), n5 = z({ isNaN_: function(e) {
|
|
26824
26832
|
var n = A(e, "x", "isNaN");
|
|
26825
26833
|
return U.runKernelFunc(function(t) {
|
|
26826
26834
|
return t.isNaN(n);
|
|
@@ -26829,7 +26837,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26829
26837
|
return yt(t);
|
|
26830
26838
|
} };
|
|
26831
26839
|
});
|
|
26832
|
-
} }),
|
|
26840
|
+
} }), r5 = z({ isInf_: function(e) {
|
|
26833
26841
|
var n = A(e, "x", "isInf");
|
|
26834
26842
|
return U.runKernelFunc(function(t) {
|
|
26835
26843
|
return t.isInf(n);
|
|
@@ -26838,7 +26846,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26838
26846
|
return yt(t);
|
|
26839
26847
|
} };
|
|
26840
26848
|
});
|
|
26841
|
-
} }),
|
|
26849
|
+
} }), o5 = z({ isFinite_: function(e) {
|
|
26842
26850
|
var n = A(e, "x", "isFinite");
|
|
26843
26851
|
return U.runKernelFunc(function(t) {
|
|
26844
26852
|
return t.isFinite(n);
|
|
@@ -26847,7 +26855,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26847
26855
|
return yt(t);
|
|
26848
26856
|
} };
|
|
26849
26857
|
});
|
|
26850
|
-
} }),
|
|
26858
|
+
} }), a5 = z({ sin_: function(e) {
|
|
26851
26859
|
var n = A(e, "x", "sin"), t = [n];
|
|
26852
26860
|
return U.runKernelFunc(function(r, o) {
|
|
26853
26861
|
var a = r.sin(n);
|
|
@@ -26858,7 +26866,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26858
26866
|
return a.toFloat().cos().mul(r);
|
|
26859
26867
|
} };
|
|
26860
26868
|
}, "Sin", {}, t);
|
|
26861
|
-
} }),
|
|
26869
|
+
} }), i5 = z({ sinh_: function(e) {
|
|
26862
26870
|
var n = A(e, "x", "sinh");
|
|
26863
26871
|
return U.runKernelFunc(function(t, r) {
|
|
26864
26872
|
var o = t.sinh(n);
|
|
@@ -26869,7 +26877,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26869
26877
|
return o.toFloat().cosh().mulStrict(t);
|
|
26870
26878
|
} };
|
|
26871
26879
|
});
|
|
26872
|
-
} }),
|
|
26880
|
+
} }), s5 = z({ softplus_: function(e) {
|
|
26873
26881
|
var n = A(e, "x", "softplus");
|
|
26874
26882
|
return U.runKernelFunc(function(t, r) {
|
|
26875
26883
|
var o = t.softplus(n);
|
|
@@ -26880,7 +26888,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26880
26888
|
return t.mul(o.sigmoid());
|
|
26881
26889
|
} };
|
|
26882
26890
|
});
|
|
26883
|
-
} }),
|
|
26891
|
+
} }), u5 = z({ sqrt_: function(e) {
|
|
26884
26892
|
var n = A(e, "x", "sqrt");
|
|
26885
26893
|
return U.runKernelFunc(function(t, r) {
|
|
26886
26894
|
var o = t.sqrt(n);
|
|
@@ -26891,7 +26899,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26891
26899
|
return t.div(o.toFloat().sqrt().mul(2));
|
|
26892
26900
|
} };
|
|
26893
26901
|
});
|
|
26894
|
-
} }),
|
|
26902
|
+
} }), l5 = z({ step_: function(e, n) {
|
|
26895
26903
|
n === void 0 && (n = 0);
|
|
26896
26904
|
var t = A(e, "x", "step");
|
|
26897
26905
|
return U.runKernelFunc(function(r) {
|
|
@@ -26901,7 +26909,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26901
26909
|
return yt(r);
|
|
26902
26910
|
} };
|
|
26903
26911
|
});
|
|
26904
|
-
} }),
|
|
26912
|
+
} }), c5 = z({ tan_: function(e) {
|
|
26905
26913
|
var n = A(e, "x", "tan");
|
|
26906
26914
|
return U.runKernelFunc(function(t, r) {
|
|
26907
26915
|
var o = t.tan(n);
|
|
@@ -26912,7 +26920,7 @@ var O5 = z({ square_: function(e) {
|
|
|
26912
26920
|
return t.div(o.cos().square());
|
|
26913
26921
|
} };
|
|
26914
26922
|
});
|
|
26915
|
-
} }),
|
|
26923
|
+
} }), d5 = z({ tanh_: function(e) {
|
|
26916
26924
|
var n = A(e, "x", "tanh");
|
|
26917
26925
|
return U.runKernelFunc(function(t, r) {
|
|
26918
26926
|
var o = t.tanh(n);
|
|
@@ -27010,20 +27018,20 @@ function Yi(e) {
|
|
|
27010
27018
|
function mu() {
|
|
27011
27019
|
Vm("tf.batchNormalization() is going away. Use tf.batchNorm() instead, and note the positional argument change of scale, offset, and varianceEpsilon");
|
|
27012
27020
|
}
|
|
27013
|
-
var
|
|
27021
|
+
var f5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
|
|
27014
27022
|
return r === void 0 && (r = 1e-3), mu(), Cg(e, n, t, a, o, r);
|
|
27015
|
-
} }),
|
|
27023
|
+
} }), h5 = z({ batchNormalization3d_: function(e, n, t, r, o, a) {
|
|
27016
27024
|
return r === void 0 && (r = 1e-3), mu(), kg(e, n, t, a, o, r);
|
|
27017
|
-
} }),
|
|
27025
|
+
} }), p5 = z({ batchNormalization4d_: function(e, n, t, r, o, a) {
|
|
27018
27026
|
return r === void 0 && (r = 1e-3), mu(), Sg(e, n, t, a, o, r);
|
|
27019
|
-
} }),
|
|
27027
|
+
} }), v5 = z({ batchNormalization_: function(e, n, t, r, o, a) {
|
|
27020
27028
|
return r === void 0 && (r = 1e-3), mu(), Ii(e, n, t, a, o, r);
|
|
27021
|
-
} }), Eg = z({ batchNorm_: Ii }),
|
|
27029
|
+
} }), Eg = z({ batchNorm_: Ii }), m5 = z({ batchNorm2d_: Cg }), g5 = z({ batchNorm3d_: kg }), y5 = z({ batchNorm4d_: Sg }), gu = z({ logicalAnd_: function(e, n) {
|
|
27022
27030
|
var t = A(e, "a", "logicalAnd", "bool"), r = A(n, "b", "logicalAnd", "bool");
|
|
27023
27031
|
return pt(t.shape, r.shape), U.runKernelFunc(function(o) {
|
|
27024
27032
|
return o.logicalAnd(t, r);
|
|
27025
27033
|
}, { a: t, b: r }, null, "LogicalAnd");
|
|
27026
|
-
} }),
|
|
27034
|
+
} }), b5 = z({ logicalNot_: function(e) {
|
|
27027
27035
|
var n = A(e, "x", "logicalNot", "bool");
|
|
27028
27036
|
return U.runKernelFunc(function(t) {
|
|
27029
27037
|
return t.logicalNot(n);
|
|
@@ -27033,7 +27041,7 @@ var fR = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
|
|
|
27033
27041
|
return pt(t.shape, r.shape), U.runKernelFunc(function(o) {
|
|
27034
27042
|
return o.logicalOr(t, r);
|
|
27035
27043
|
}, { $a: t, $b: r });
|
|
27036
|
-
} }),
|
|
27044
|
+
} }), w5 = z({ logicalXor_: function(e, n) {
|
|
27037
27045
|
var t = A(e, "a", "logicalXor", "bool"), r = A(n, "b", "logicalXor", "bool");
|
|
27038
27046
|
return pt(t.shape, r.shape), Rg(e, n).logicalAnd(gu(e, n).logicalNot());
|
|
27039
27047
|
} }), qo = z({ where_: function(e, n, t) {
|
|
@@ -27080,7 +27088,7 @@ var fR = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
|
|
|
27080
27088
|
return u.length > 0 && (s = s.sum(u)), s.reshape(o.shape);
|
|
27081
27089
|
} };
|
|
27082
27090
|
}, "Add");
|
|
27083
|
-
} }),
|
|
27091
|
+
} }), x5 = z({ addN_: function(e) {
|
|
27084
27092
|
P(Array.isArray(e), function() {
|
|
27085
27093
|
return "The argument passed to tf.addN() must be a list of tensors";
|
|
27086
27094
|
}), P(e.length >= 1, function() {
|
|
@@ -27105,10 +27113,10 @@ var fR = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
|
|
|
27105
27113
|
};
|
|
27106
27114
|
}), a;
|
|
27107
27115
|
}, "AddN");
|
|
27108
|
-
} }),
|
|
27116
|
+
} }), _5 = z({ addStrict_: function(e, n) {
|
|
27109
27117
|
var t = A(e, "a", "addStrict"), r = A(n, "b", "addStrict");
|
|
27110
27118
|
return Rt(t.shape, r.shape, "Error in addStrict: "), t.add(r);
|
|
27111
|
-
} }),
|
|
27119
|
+
} }), C5 = z({ atan2_: function(e, n) {
|
|
27112
27120
|
var t, r = A(e, "a", "atan2"), o = A(n, "b", "atan2");
|
|
27113
27121
|
t = Ut(r, o), r = t[0], o = t[1];
|
|
27114
27122
|
var a = pt(r.shape, o.shape);
|
|
@@ -27144,12 +27152,12 @@ var fR = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
|
|
|
27144
27152
|
return c.div(f.toFloat()).neg();
|
|
27145
27153
|
} };
|
|
27146
27154
|
}, "Div");
|
|
27147
|
-
} }),
|
|
27155
|
+
} }), k5 = z({ divNoNan_: function(e, n) {
|
|
27148
27156
|
var t, r = A(e, "a", "div"), o = A(n, "b", "div");
|
|
27149
27157
|
r = (t = Ut(r, o))[0], o = t[1];
|
|
27150
27158
|
var a = lr(r, o), i = yt(a), s = o.equal(i);
|
|
27151
27159
|
return qo(s, i, a);
|
|
27152
|
-
} }),
|
|
27160
|
+
} }), S5 = z({ divStrict_: function(e, n) {
|
|
27153
27161
|
var t = A(e, "a", "div"), r = A(n, "b", "div");
|
|
27154
27162
|
return Rt(t.shape, r.shape, "Error in divideStrict: "), t.div(r);
|
|
27155
27163
|
} }), Tg = z({ floorDiv_: function(e, n) {
|
|
@@ -27184,7 +27192,7 @@ var fR = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
|
|
|
27184
27192
|
return a.mul(s.less(u).toFloat());
|
|
27185
27193
|
} };
|
|
27186
27194
|
}, "Maximum");
|
|
27187
|
-
} }),
|
|
27195
|
+
} }), E5 = z({ maximumStrict_: function(e, n) {
|
|
27188
27196
|
var t = A(e, "a", "maximumStrict"), r = A(n, "b", "maximumStrict");
|
|
27189
27197
|
return Rt(t.shape, r.shape, "Error in maximumStrict: "), t.maximum(r);
|
|
27190
27198
|
} }), Ag = z({ minimum_: function(e, n) {
|
|
@@ -27200,10 +27208,10 @@ var fR = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
|
|
|
27200
27208
|
return a.mul(s.greater(u).toFloat());
|
|
27201
27209
|
} };
|
|
27202
27210
|
}, "Minimum");
|
|
27203
|
-
} }),
|
|
27211
|
+
} }), R5 = z({ minimumStrict_: function(e, n) {
|
|
27204
27212
|
var t = A(e, "a", "minimumStrict"), r = A(n, "b", "minimumStrict");
|
|
27205
27213
|
return Rt(t.shape, r.shape, "Error in minimumStrict: "), t.minimum(r);
|
|
27206
|
-
} }),
|
|
27214
|
+
} }), I5 = z({ mod_: function(e, n) {
|
|
27207
27215
|
var t, r = A(e, "a", "mod"), o = A(n, "b", "mod");
|
|
27208
27216
|
t = Ut(r, o), r = t[0], o = t[1];
|
|
27209
27217
|
var a = pt(r.shape, o.shape);
|
|
@@ -27220,7 +27228,7 @@ var fR = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
|
|
|
27220
27228
|
return d.length > 0 ? c.sum(d).reshape(l.shape) : c;
|
|
27221
27229
|
} };
|
|
27222
27230
|
});
|
|
27223
|
-
} }),
|
|
27231
|
+
} }), T5 = z({ modStrict_: function(e, n) {
|
|
27224
27232
|
var t = A(e, "a", "modStrict"), r = A(n, "b", "modStrict");
|
|
27225
27233
|
return Rt(t.shape, r.shape, "Error in modStrict: "), t.mod(r);
|
|
27226
27234
|
} }), Tn = z({ mul_: function(e, n) {
|
|
@@ -27240,7 +27248,7 @@ var fR = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
|
|
|
27240
27248
|
return d.length > 0 ? c.sum(d).reshape(l.shape) : c;
|
|
27241
27249
|
} };
|
|
27242
27250
|
}, "Mul");
|
|
27243
|
-
} }),
|
|
27251
|
+
} }), A5 = z({ mulStrict_: function(e, n) {
|
|
27244
27252
|
var t = A(e, "a", "mul"), r = A(n, "b", "mul");
|
|
27245
27253
|
return Rt(t.shape, r.shape, "Error in multiplyStrict: "), t.mul(r);
|
|
27246
27254
|
} }), Hs = z({ pow_: function(e, n) {
|
|
@@ -27260,9 +27268,9 @@ var fR = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
|
|
|
27260
27268
|
return m.length > 0 && (p = p.sum(m)), p.reshape(c.shape);
|
|
27261
27269
|
} };
|
|
27262
27270
|
}, "Pow", {}, i, [!0]);
|
|
27263
|
-
} }),
|
|
27271
|
+
} }), D5 = z({ powStrict_: function(e, n) {
|
|
27264
27272
|
return Rt(e.shape, n.shape, "Error in powStrict: "), e.pow(n);
|
|
27265
|
-
} }),
|
|
27273
|
+
} }), M5 = z({ squaredDifferenceStrict_: function(e, n) {
|
|
27266
27274
|
var t = A(e, "a", "squaredDifferenceStrict"), r = A(n, "b", "squaredDifferenceStrict");
|
|
27267
27275
|
return Rt(t.shape, r.shape, "Error in squaredDifferenceStrict: "), t.squaredDifference(r);
|
|
27268
27276
|
} }), sn = z({ sub_: function(e, n) {
|
|
@@ -27280,7 +27288,7 @@ var fR = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
|
|
|
27280
27288
|
return u.length > 0 && (s = s.sum(u)), s.neg().reshape(o.shape);
|
|
27281
27289
|
} };
|
|
27282
27290
|
}, "Sub");
|
|
27283
|
-
} }),
|
|
27291
|
+
} }), P5 = z({ subStrict_: function(e, n) {
|
|
27284
27292
|
var t = A(e, "a", "subStrict"), r = A(n, "b", "subStrict");
|
|
27285
27293
|
return Rt(t.shape, r.shape, "Error in subStrict: "), t.sub(r);
|
|
27286
27294
|
} }), Dg = z({ equal_: function(e, n) {
|
|
@@ -27288,10 +27296,10 @@ var fR = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
|
|
|
27288
27296
|
return t = Ut(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), U.runKernelFunc(function(a) {
|
|
27289
27297
|
return a.equal(r, o);
|
|
27290
27298
|
}, { $a: r, $b: o });
|
|
27291
|
-
} }),
|
|
27299
|
+
} }), B5 = z({ equalStrict_: function(e, n) {
|
|
27292
27300
|
var t = A(e, "a", "equalStrict"), r = A(n, "b", "equalStrict");
|
|
27293
27301
|
return Rt(t.shape, r.shape, "Error in equalStrict: "), t.equal(r);
|
|
27294
|
-
} }),
|
|
27302
|
+
} }), F5 = z({ greater_: function(e, n) {
|
|
27295
27303
|
var t, r = A(e, "a", "greater"), o = A(n, "b", "greater");
|
|
27296
27304
|
return t = Ut(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), U.runKernelFunc(function(a) {
|
|
27297
27305
|
return a.greater(r, o);
|
|
@@ -27309,35 +27317,35 @@ var fR = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
|
|
|
27309
27317
|
return yt(u);
|
|
27310
27318
|
} };
|
|
27311
27319
|
}, "GreaterEqual");
|
|
27312
|
-
} }),
|
|
27320
|
+
} }), O5 = z({ greaterEqualStrict_: function(e, n) {
|
|
27313
27321
|
var t = A(e, "a", "greaterEqualStrict"), r = A(n, "b", "greaterEqualStrict");
|
|
27314
27322
|
return Rt(t.shape, r.shape, "Error in greaterEqualStrict: "), t.greaterEqual(r);
|
|
27315
|
-
} }),
|
|
27323
|
+
} }), N5 = z({ greaterStrict_: function(e, n) {
|
|
27316
27324
|
var t = A(e, "a", "greaterStrict"), r = A(n, "b", "greaterStrict");
|
|
27317
27325
|
return Rt(t.shape, r.shape, "Error in greaterStrict: "), t.greater(r);
|
|
27318
|
-
} }),
|
|
27326
|
+
} }), L5 = z({ less_: function(e, n) {
|
|
27319
27327
|
var t, r = A(e, "a", "less"), o = A(n, "b", "less");
|
|
27320
27328
|
return t = Ut(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), U.runKernelFunc(function(a) {
|
|
27321
27329
|
return a.less(r, o);
|
|
27322
27330
|
}, { a: r, b: o }, null, "Less");
|
|
27323
|
-
} }),
|
|
27331
|
+
} }), q5 = z({ lessEqual_: function(e, n) {
|
|
27324
27332
|
var t, r = A(e, "a", "lessEqual"), o = A(n, "b", "lessEqual");
|
|
27325
27333
|
return t = Ut(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), U.runKernelFunc(function(a, i) {
|
|
27326
27334
|
var s = a.lessEqual(r, o);
|
|
27327
27335
|
return i([r, o]), s;
|
|
27328
27336
|
}, { a: r, b: o }, null, "LessEqual");
|
|
27329
|
-
} }),
|
|
27337
|
+
} }), V5 = z({ lessEqualStrict_: function(e, n) {
|
|
27330
27338
|
var t = A(e, "a", "lessEqualStrict"), r = A(n, "b", "lessEqualStrict");
|
|
27331
27339
|
return Rt(t.shape, r.shape, "Error in lessEqualStrict: "), t.lessEqual(r);
|
|
27332
|
-
} }),
|
|
27340
|
+
} }), z5 = z({ lessStrict_: function(e, n) {
|
|
27333
27341
|
var t = A(e, "a", "lessStrict"), r = A(n, "b", "lessStrict");
|
|
27334
27342
|
return Rt(t.shape, r.shape, "Error in lessStrict: "), t.less(r);
|
|
27335
|
-
} }), $
|
|
27343
|
+
} }), $5 = z({ notEqual_: function(e, n) {
|
|
27336
27344
|
var t, r = A(e, "a", "notEqual"), o = A(n, "b", "notEqual");
|
|
27337
27345
|
return t = Ut(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), U.runKernelFunc(function(a) {
|
|
27338
27346
|
return a.notEqual(r, o);
|
|
27339
27347
|
}, { a: r, b: o }, null, "NotEqual");
|
|
27340
|
-
} }),
|
|
27348
|
+
} }), W5 = z({ notEqualStrict_: function(e, n) {
|
|
27341
27349
|
var t = A(e, "a", "notEqualStrict"), r = A(n, "b", "notEqualStrict");
|
|
27342
27350
|
return Rt(t.shape, r.shape, "Error in notEqualStrict: "), t.notEqual(r);
|
|
27343
27351
|
} });
|
|
@@ -27389,7 +27397,7 @@ var Fd = z({ gather_: function(e, n, t) {
|
|
|
27389
27397
|
}(a, s);
|
|
27390
27398
|
} };
|
|
27391
27399
|
});
|
|
27392
|
-
} }),
|
|
27400
|
+
} }), H5 = function(e, n, t) {
|
|
27393
27401
|
return De(this, void 0, void 0, function() {
|
|
27394
27402
|
var r, o, a, i, s, u, l, c, d, f, h, p, m;
|
|
27395
27403
|
return Me(this, function(v) {
|
|
@@ -27467,7 +27475,7 @@ function Fg(e, n, t, r, o) {
|
|
|
27467
27475
|
}, { dy5D: i });
|
|
27468
27476
|
return s ? d.as4D(d.shape[1], d.shape[2], d.shape[3], d.shape[4]) : d;
|
|
27469
27477
|
}
|
|
27470
|
-
var
|
|
27478
|
+
var U5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
|
|
27471
27479
|
o === void 0 && (o = "NWC"), a === void 0 && (a = 1);
|
|
27472
27480
|
var s = A(e, "x", "conv1d"), u = A(n, "filter", "conv1d"), l = s, c = !1;
|
|
27473
27481
|
s.rank === 2 && (c = !0, l = s.as3D(1, s.shape[0], s.shape[1])), P(l.rank === 3, function() {
|
|
@@ -27515,7 +27523,7 @@ var UR = z({ conv1d_: function(e, n, t, r, o, a, i) {
|
|
|
27515
27523
|
} };
|
|
27516
27524
|
}, "Conv2D", h, p);
|
|
27517
27525
|
return c ? m.as3D(m.shape[1], m.shape[2], m.shape[3]) : m;
|
|
27518
|
-
} }),
|
|
27526
|
+
} }), j5 = z({ conv3d_: function(e, n, t, r, o, a) {
|
|
27519
27527
|
o === void 0 && (o = "NDHWC"), a === void 0 && (a = [1, 1, 1]);
|
|
27520
27528
|
var i = A(e, "x", "conv3d"), s = A(n, "filter", "conv3d"), u = i, l = !1;
|
|
27521
27529
|
i.rank === 4 && (l = !0, u = i.as5D(1, i.shape[0], i.shape[1], i.shape[2], i.shape[3])), P(u.rank === 5, function() {
|
|
@@ -27653,9 +27661,9 @@ var UR = z({ conv1d_: function(e, n, t, r, o, a, i) {
|
|
|
27653
27661
|
});
|
|
27654
27662
|
var p = yu(c, u, r, o, i, a), m = ir(p, l, 1, "valid", i);
|
|
27655
27663
|
return d ? m.as3D(m.shape[1], m.shape[2], m.shape[3]) : m;
|
|
27656
|
-
} }),
|
|
27664
|
+
} }), G5 = z({ conv2dTranspose_: function(e, n, t, r, o, a) {
|
|
27657
27665
|
return Bg(t, A(e, "x", "conv2dTranspose"), A(n, "filter", "conv2dTranspose"), r, o, "NHWC", a);
|
|
27658
|
-
} }),
|
|
27666
|
+
} }), K5 = z({ conv3dTranspose_: function(e, n, t, r, o) {
|
|
27659
27667
|
return Fg(t, A(e, "x", "conv3dTranspose"), A(n, "filter", "conv3dTranspose"), r, o);
|
|
27660
27668
|
} }), bu = z({ matMul_: function(e, n, t, r) {
|
|
27661
27669
|
var o;
|
|
@@ -27694,7 +27702,7 @@ var UR = z({ conv1d_: function(e, n, t, r, o, a, i) {
|
|
|
27694
27702
|
return _.matMul(w, !0, !1);
|
|
27695
27703
|
} };
|
|
27696
27704
|
}, "BatchMatMul", b).reshape(m);
|
|
27697
|
-
} }),
|
|
27705
|
+
} }), X5 = z({ dot_: function(e, n) {
|
|
27698
27706
|
var t = A(e, "t1", "dot"), r = A(n, "t2", "dot");
|
|
27699
27707
|
P(!(t.rank !== 1 && t.rank !== 2 || r.rank !== 1 && r.rank !== 2), function() {
|
|
27700
27708
|
return "Error in dot: inputs must all be rank 1 or 2, but got ranks " + t.rank + " and " + r.rank + ".";
|
|
@@ -27703,7 +27711,7 @@ var UR = z({ conv1d_: function(e, n, t, r, o, a, i) {
|
|
|
27703
27711
|
return P(o === a, function() {
|
|
27704
27712
|
return "Error in dot: inner dimensions of inputs must match, but got " + o + " and " + a + ".";
|
|
27705
27713
|
}), t.rank === 1 && r.rank === 1 ? t.as2D(1, -1).matMul(r.as2D(-1, 1)).asScalar() : t.rank === 1 && r.rank === 2 ? t.as2D(1, -1).matMul(r.as2D(r.shape[0], r.shape[1])).as1D() : t.rank === 2 && r.rank === 1 ? t.matMul(r.as2D(-1, 1)).as1D() : t.matMul(r.as2D(r.shape[0], r.shape[1]));
|
|
27706
|
-
} }),
|
|
27714
|
+
} }), Y5 = z({ outerProduct_: function(e, n) {
|
|
27707
27715
|
var t = A(e, "v1", "outerProduct"), r = A(n, "v2", "outerProduct");
|
|
27708
27716
|
return P(t.rank === 1 && r.rank === 1, function() {
|
|
27709
27717
|
return "Error in outerProduct: inputs must be rank 1, but got ranks " + t.rank + " and " + r.rank + ".";
|
|
@@ -27719,17 +27727,17 @@ var UR = z({ conv1d_: function(e, n, t, r, o, a, i) {
|
|
|
27719
27727
|
return o.reverse(r);
|
|
27720
27728
|
} };
|
|
27721
27729
|
}).reshapeAs(t);
|
|
27722
|
-
} }),
|
|
27730
|
+
} }), Q5 = z({ reverse1d_: function(e) {
|
|
27723
27731
|
var n = A(e, "x", "reverse");
|
|
27724
27732
|
return P(n.rank === 1, function() {
|
|
27725
27733
|
return "Error in reverse1D: x must be rank 1 but got rank " + n.rank + ".";
|
|
27726
27734
|
}), Ti(n, 0);
|
|
27727
|
-
} }),
|
|
27735
|
+
} }), Z5 = z({ reverse2d_: function(e, n) {
|
|
27728
27736
|
var t = A(e, "x", "reverse");
|
|
27729
27737
|
return P(t.rank === 2, function() {
|
|
27730
27738
|
return "Error in reverse2D: x must be rank 2 but got rank " + t.rank + ".";
|
|
27731
27739
|
}), Ti(t, n);
|
|
27732
|
-
} }),
|
|
27740
|
+
} }), J5 = z({ reverse3d_: function(e, n) {
|
|
27733
27741
|
var t = A(e, "x", "reverse");
|
|
27734
27742
|
return P(t.rank === 3, function() {
|
|
27735
27743
|
return "Error in reverse3D: x must be rank 3 but got rank " + t.rank + ".";
|
|
@@ -28898,7 +28906,7 @@ var UI = z({ resizeBilinear_: function(e, n, t) {
|
|
|
28898
28906
|
} }, F);
|
|
28899
28907
|
}, "FusedDepthwiseConv2D", { convInfo: x, activation: f }, E, [!0]);
|
|
28900
28908
|
return b ? R.as3D(R.shape[1], R.shape[2], R.shape[3]) : R;
|
|
28901
|
-
} }), tT = Object.freeze({ matMul: ZI, conv2d: JI, depthwiseConv2d: eT }), nT = Object.freeze({ image: $d, linalg: HI, losses: VI, spectral: SI, fused: tT, signal: AI, square:
|
|
28909
|
+
} }), tT = Object.freeze({ matMul: ZI, conv2d: JI, depthwiseConv2d: eT }), nT = Object.freeze({ image: $d, linalg: HI, losses: VI, spectral: SI, fused: tT, signal: AI, square: OR, squaredDifference: wg, conv1d: U5, conv2d: ir, conv3d: j5, depthwiseConv2d: yu, separableConv2d: Nd, conv2dTranspose: G5, conv3dTranspose: K5, op: z, batchNormalization2d: f5, batchNormalization3d: h5, batchNormalization4d: p5, batchNormalization: v5, batchNorm: Eg, batchNorm2d: m5, batchNorm3d: g5, batchNorm4d: y5, booleanMaskAsync: H5, complex: yn, real: or, imag: _r, concat: rn, concat1d: t4, concat2d: n4, concat3d: r4, concat4d: o4, split: Cd, matMul: bu, dot: X5, outerProduct: Y5, reverse: Ti, reverse1d: Q5, reverse2d: Z5, reverse3d: J5, reverse4d: eI, maxPool: cn, avgPool: Ai, pool: tI, maxPool3d: nI, avgPool3d: rI, slice: Rr, slice1d: oI, slice2d: aI, slice3d: zg, slice4d: iI, abs: NR, acos: LR, acosh: qR, asin: VR, asinh: zR, atan: $R, atanh: WR, ceil: HR, clipByValue: Pd, cos: UR, cosh: jR, erf: GR, exp: Dc, expm1: KR, floor: XR, log: YR, log1p: QR, logSigmoid: ZR, neg: Ws, reciprocal: JR, round: e5, rsqrt: xg, sigmoid: _g, sign: t5, isNaN: n5, isInf: r5, isFinite: o5, sin: a5, sinh: i5, softplus: s5, sqrt: u5, step: l5, tan: c5, tanh: d5, all: sI, any: uI, argMax: lI, argMin: cI, logSumExp: dI, max: wu, mean: fI, min: hI, moments: pI, sum: Wg, prod: vI, equal: Dg, equalStrict: B5, greater: F5, greaterEqual: Mg, greaterEqualStrict: O5, greaterStrict: N5, less: L5, lessEqual: q5, lessEqualStrict: V5, lessStrict: z5, notEqual: $5, notEqualStrict: W5, add: ft, addN: x5, addStrict: _5, atan2: C5, div: lr, divNoNan: k5, divStrict: S5, floorDiv: Tg, maximum: Bd, maximumStrict: E5, minimum: Ag, minimumStrict: R5, mod: I5, modStrict: T5, mul: Tn, mulStrict: A5, pow: Hs, powStrict: D5, squaredDifferenceStrict: M5, sub: sn, subStrict: P5, elu: Hg, leakyRelu: mI, prelu: Ug, relu: Ht, relu6: jg, selu: gI, logicalAnd: gu, logicalNot: b5, logicalOr: Rg, logicalXor: w5, where: qo, whereAsync: Ig, buffer: ot, print: h4, batchToSpaceND: Wm, broadcastTo: p4, cast: v4, clone: m4, cumsum: g4, depthToSpace: y4, expandDims: nr, eye: Hm, multinomial: b4, oneHot: Rc, pad: zo, pad1d: w4, pad2d: x4, pad3d: _4, pad4d: C4, rand: k4, randomNormal: S4, randomGamma: E4, randomUniform: Um, reshape: cr, spaceToBatchND: jm, squeeze: Gm, stack: Qn, tile: ha, truncatedNormal: R4, unstack: on, setdiff1dAsync: I4, fill: Er, linspace: e4, ones: Va, range: Fs, scalar: we, tensor: wn, tensor1d: tn, tensor2d: so, tensor3d: _d, tensor4d: Pn, tensor5d: QS, tensor6d: ZS, variable: JS, zeros: Vt, onesLike: $m, zerosLike: yt, transpose: fo, softmax: jr, logSoftmax: F4, localResponseNormalization: yI, norm: Gg, gather: Fd, unsortedSegmentSum: Pg, basicLSTMCell: bI, multiRNNCell: wI, movingAverage: xI, stridedSlice: _I, topk: CI, scatterND: kI, fft: Ld, ifft: Us, rfft: qd, irfft: Kg, sparseToDense: EI, gatherND: RI, diag: II, dropout: TI, hannWindow: Vd, hammingWindow: Yg, frame: zd, stft: Qg, inTopKAsync: DI });
|
|
28902
28910
|
function ce(e, n) {
|
|
28903
28911
|
Array.isArray(e) || (e = [e]), e.forEach(function(t) {
|
|
28904
28912
|
t != null && P(t.dtype !== "complex64", function() {
|