Skip to content

Commit

Permalink
Bug 1925437 [wpt PR 48690] - webnn: Deprecate MLTensorUsage in favor …
Browse files Browse the repository at this point in the history
…of boolean flags, a=testonly

Automatic update from web-platform-tests
webnn: Deprecate MLTensorUsage in favor of boolean flags

As per the feedback on this thread on the MLTensor explainer PR:
webmachinelearning/webnn#754 (comment)

This CL includes logic to still support specifying the deprecated
MLTensorUsage flags for now, though this logic will only exist for
about a milestone to give callers the opportunity to migrate their
existing code

Bug: 343638938
Change-Id: I56209e68fde3920b8d6c781c8f804ac6fcd35c9a
Cq-Include-Trybots: luci.chromium.try​:mac14.arm64-blink-rel,win11-blink-rel
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5933323
Reviewed-by: ningxin hu <ningxin.huintel.com>
Auto-Submit: Austin Sullivan <asullychromium.org>
Commit-Queue: ningxin hu <ningxin.huintel.com>
Cr-Commit-Position: refs/heads/main{#1370419}

--

wpt-commits: ab3cd3a3748943c7ec96b7fdcc7b8e3acebe1396
wpt-pr: 48690

UltraBlame original commit: 6f4fb11a34977957f99608befb8bd2ecaaec0153
  • Loading branch information
marco-c committed Oct 22, 2024
1 parent fb62cf2 commit 8eb5698
Show file tree
Hide file tree
Showing 6 changed files with 146 additions and 230 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,12 @@ shape
2
4
]
usage
readable
:
MLTensorUsage
.
WRITE
|
MLTensorUsage
.
READ
true
writable
:
true
}
)
;
Expand Down Expand Up @@ -742,11 +739,9 @@ shape
2
2
]
usage
readable
:
MLTensorUsage
.
READ
true
}
)
;
Expand Down Expand Up @@ -846,11 +841,9 @@ shape
2
2
]
usage
readable
:
MLTensorUsage
.
READ
true
}
)
;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,12 @@ shape
[
4
]
usage
readable
:
MLTensorUsage
.
WRITE
|
MLTensorUsage
.
READ
true
writable
:
true
}
)
mlContext
Expand All @@ -157,11 +154,9 @@ shape
[
4
]
usage
readable
:
MLTensorUsage
.
READ
true
}
)
builder
Expand Down Expand Up @@ -385,15 +380,12 @@ shape
[
4
]
usage
readable
:
MLTensorUsage
.
WRITE
|
MLTensorUsage
.
READ
true
writable
:
true
}
)
mlContext
Expand All @@ -411,11 +403,9 @@ shape
[
4
]
usage
readable
:
MLTensorUsage
.
READ
true
}
)
builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,12 @@ shape
[
1
]
usage
readable
:
MLTensorUsage
.
WRITE
|
MLTensorUsage
.
READ
true
writable
:
true
}
;
const
Expand Down Expand Up @@ -371,15 +368,12 @@ shape
[
1
]
usage
readable
:
MLTensorUsage
.
WRITE
|
MLTensorUsage
.
READ
true
writable
:
true
}
;
const
Expand Down Expand Up @@ -564,15 +558,12 @@ shape
[
1
]
usage
readable
:
MLTensorUsage
.
WRITE
|
MLTensorUsage
.
READ
true
writable
:
true
}
;
const
Expand Down Expand Up @@ -839,15 +830,12 @@ shape
[
1
]
usage
readable
:
MLTensorUsage
.
WRITE
|
MLTensorUsage
.
READ
true
writable
:
true
}
;
const
Expand Down Expand Up @@ -1100,15 +1088,12 @@ shape
[
1
]
usage
readable
:
MLTensorUsage
.
WRITE
|
MLTensorUsage
.
READ
true
writable
:
true
}
;
const
Expand Down Expand Up @@ -1332,15 +1317,12 @@ shape
[
1
]
usage
readable
:
MLTensorUsage
.
WRITE
|
MLTensorUsage
.
READ
true
writable
:
true
}
;
const
Expand Down Expand Up @@ -1610,15 +1592,12 @@ shape
[
1
]
usage
readable
:
MLTensorUsage
.
WRITE
|
MLTensorUsage
.
READ
true
writable
:
true
}
;
const
Expand Down Expand Up @@ -1877,15 +1856,12 @@ shape
[
1
]
usage
readable
:
MLTensorUsage
.
WRITE
|
MLTensorUsage
.
READ
true
writable
:
true
}
;
const
Expand Down Expand Up @@ -2137,15 +2113,12 @@ shape
[
1
]
usage
readable
:
MLTensorUsage
.
WRITE
|
MLTensorUsage
.
READ
true
writable
:
true
}
;
const
Expand Down
Loading

0 comments on commit 8eb5698

Please sign in to comment.