This will fix multiple typos in the tasks internal files.
PiperOrigin-RevId: 564264998
This commit is contained in:
parent
d1b04a9309
commit
b2494fe3c1
|
@ -12,7 +12,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
# RaggedTensors suppport in TFLite
|
# RaggedTensors support in TFLite
|
||||||
|
|
||||||
package(default_visibility = ["//mediapipe/tasks:internal"])
|
package(default_visibility = ["//mediapipe/tasks:internal"])
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ message StableDiffusionIterateCalculatorOptions {
|
||||||
// If set to be True, the calculator will perform a GPU-CPU sync and emit an
|
// If set to be True, the calculator will perform a GPU-CPU sync and emit an
|
||||||
// empty packet. It is used to provide the signal of which iterations it is
|
// empty packet. It is used to provide the signal of which iterations it is
|
||||||
// currently at, typically used to create a progress bar. Note that this also
|
// currently at, typically used to create a progress bar. Note that this also
|
||||||
// introduce overhead, but not significanly based on our experiments (~1ms).
|
// introduce overhead, but not significantly based on our experiments (~1ms).
|
||||||
optional bool emit_empty_packet = 6 [default = false];
|
optional bool emit_empty_packet = 6 [default = false];
|
||||||
|
|
||||||
enum ClPriorityHint {
|
enum ClPriorityHint {
|
||||||
|
|
|
@ -510,9 +510,9 @@ static NSString *const kLiveStreamTestsDictExpectationKey = @"expectation";
|
||||||
// times. An normal expectation will fail if expectation.fulfill() is not called
|
// times. An normal expectation will fail if expectation.fulfill() is not called
|
||||||
// `expectation.expectedFulfillmentCount` times. If `expectation.isInverted = true`, the test will
|
// `expectation.expectedFulfillmentCount` times. If `expectation.isInverted = true`, the test will
|
||||||
// only succeed if expectation is not fulfilled for the specified `expectedFulfillmentCount`.
|
// only succeed if expectation is not fulfilled for the specified `expectedFulfillmentCount`.
|
||||||
// Since in our case we cannot predict how many times the expectation is supposed to be fullfilled
|
// Since in our case we cannot predict how many times the expectation is supposed to be fulfilled
|
||||||
// setting, `expectation.expectedFulfillmentCount` = `iterationCount` + 1 and
|
// setting, `expectation.expectedFulfillmentCount` = `iterationCount` + 1 and
|
||||||
// `expectation.isInverted = true` ensures that test succeeds ifexpectation is fullfilled <=
|
// `expectation.isInverted = true` ensures that test succeeds if the expectation is fulfilled <=
|
||||||
// `iterationCount` times.
|
// `iterationCount` times.
|
||||||
XCTestExpectation *expectation =
|
XCTestExpectation *expectation =
|
||||||
[[XCTestExpectation alloc] initWithDescription:@"detectWithLiveStream"];
|
[[XCTestExpectation alloc] initWithDescription:@"detectWithLiveStream"];
|
||||||
|
|
|
@ -36,7 +36,7 @@ typedef NS_ENUM(NSUInteger, MPPMaskDataType) {
|
||||||
* `MPPMaskDataTypeUInt8`, in addition to accessing the mask using `uint8Data`, you can access
|
* `MPPMaskDataTypeUInt8`, in addition to accessing the mask using `uint8Data`, you can access
|
||||||
* `float32Data` to get the 32 bit float data (with values ranging from 0.0 to 1.0). The first
|
* `float32Data` to get the 32 bit float data (with values ranging from 0.0 to 1.0). The first
|
||||||
* time you access the data as a type different from the underlying type, an expensive type
|
* time you access the data as a type different from the underlying type, an expensive type
|
||||||
* conversion is performed. Subsequent accesses return a pointer to the memory location fo the same
|
* conversion is performed. Subsequent accesses return a pointer to the memory location for the same
|
||||||
* type converted array. As type conversions can be expensive, it is recommended to limit the
|
* type converted array. As type conversions can be expensive, it is recommended to limit the
|
||||||
* accesses to data of types different from the underlying type.
|
* accesses to data of types different from the underlying type.
|
||||||
*
|
*
|
||||||
|
|
|
@ -47,7 +47,7 @@ class BaseOptions:
|
||||||
Attributes:
|
Attributes:
|
||||||
model_asset_path: Path to the model asset file.
|
model_asset_path: Path to the model asset file.
|
||||||
model_asset_buffer: The model asset file contents as bytes.
|
model_asset_buffer: The model asset file contents as bytes.
|
||||||
delegate: Accelaration to use. Supported values are GPU and CPU. GPU support
|
delegate: Acceleration to use. Supported values are GPU and CPU. GPU support
|
||||||
is currently limited to Ubuntu platforms.
|
is currently limited to Ubuntu platforms.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -144,7 +144,7 @@ export abstract class TaskRunner {
|
||||||
})
|
})
|
||||||
.then(buffer => {
|
.then(buffer => {
|
||||||
try {
|
try {
|
||||||
// Try to delete file as we cannot overwite an existing file
|
// Try to delete file as we cannot overwrite an existing file
|
||||||
// using our current API.
|
// using our current API.
|
||||||
this.graphRunner.wasmModule.FS_unlink('/model.dat');
|
this.graphRunner.wasmModule.FS_unlink('/model.dat');
|
||||||
} catch {
|
} catch {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user