Home
last modified time | relevance | path

Searched +full:remove +full:- +full:item (Results 1 – 25 of 1077) sorted by relevance

12345678910>>...44

/third_party/mindspore/mindspore-src/source/tests/ut/python/dataset/
Dtest_minddataset.py1 # Copyright 2019-2022 Huawei Technologies Co., Ltd
7 # http://www.apache.org/licenses/LICENSE-2.0
41 """add/remove cv file"""
42 file_name = os.environ.get('PYTEST_CURRENT_TEST').split(':')[-1].split(' ')[0]
48 os.remove("{}".format(x))
50 os.remove("{}.db".format(x))
64 os.remove("{}".format(x))
65 os.remove("{}.db".format(x))
69 os.remove("{}".format(x))
70 os.remove("{}.db".format(x))
[all …]
Dtest_minddataset_multi_images_and_ndarray.py1 # Copyright 2019-2022 Huawei Technologies Co., Ltd
7 # http://www.apache.org/licenses/LICENSE-2.0
35 file_name = os.environ.get('PYTEST_CURRENT_TEST').split(':')[-1].split(' ')[0]
42 "input_mask": {"type": "int32", "shape": [-1]},
51item = {"id": i, "image_0": img_data, "image_2": img_data, "image_3": img_data, "image_4": img_dat…
53 data.append(item)
65 for item in data_set.create_dict_iterator(num_epochs=1, output_numpy=True):
66 assert len(item) == 7
67 logger.info("item: {}".format(item))
68 assert item["image_0"].dtype == np.dtype('S45150')
[all …]
Dtest_minddataset_padded.py1 # Copyright 2020-2022 Huawei Technologies Co., Ltd
7 # http://www.apache.org/licenses/LICENSE-2.0
38 """add/remove cv file"""
39 file_name = os.environ.get('PYTEST_CURRENT_TEST').split(':')[-1].split(' ')[0]
44 os.remove("{}".format(x)) if os.path.exists("{}".format(x)) else None
45 os.remove("{}.db".format(x)) if os.path.exists(
60 os.remove("{}".format(x))
61 os.remove("{}.db".format(x))
65 os.remove("{}".format(x))
66 os.remove("{}.db".format(x))
[all …]
/third_party/mesa3d/.gitlab-ci/windows/
Dmesa_deps_d3d.ps17 $depsInstallPath="C:\mesa-deps"
9 Write-Host "Downloading DirectX 12 Agility SDK at:"
10 Get-Date
11 Invoke-WebRequest -Uri https://www.nuget.org/api/v2/package/Microsoft.Direct3D.D3D12/1.614.1 -OutFi…
12 Expand-Archive -Path 'agility.zip' -DestinationPath 'C:\agility'
13 # Copy Agility SDK into mesa-deps\bin\D3D12
14 New-Item -ErrorAction SilentlyContinue -ItemType Directory -Path $depsInstallPath\bin -Name 'D3D12'
15 Copy-Item 'C:\agility\build\native\bin\x64\*.dll' -Destination $depsInstallPath\bin\D3D12
16 Remove-Item 'agility.zip'
17 Remove-Item -Recurse 'C:\agility'
[all …]
Dmesa_deps_build.ps12 $MyPath = $MyInvocation.MyCommand.Path | Split-Path -Parent
7 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 -bor [Net.SecurityP…
9 Remove-Item -Recurse -Force -ErrorAction SilentlyContinue "deps" | Out-Null
11 $depsInstallPath="C:\mesa-deps"
13 Get-Date
14 Write-Host "Cloning DirectX-Headers"
15 git clone -b v1.614.1 --depth=1 https://github.com/microsoft/DirectX-Headers deps/DirectX-Headers
17 Write-Host "Failed to clone DirectX-Headers repository"
20 Write-Host "Building DirectX-Headers"
21 $dxheaders_build = New-Item -ItemType Directory -Path ".\deps\DirectX-Headers" -Name "build"
[all …]
Dmesa_deps_test_piglit.ps14 $MyPath = $MyInvocation.MyCommand.Path | Split-Path -Parent
7 $source_dir = Join-Path -Path "$PWD" -ChildPath "src"
8 $waffle_source = Join-Path -Path "$source_dir" -ChildPath "waffle"
9 $waffle_install = Join-Path -Path "$PWD" -ChildPath "waffle"
10 $piglit_source = Join-Path -Path "$PWD" -ChildPath "Piglit"
12 Write-Host "Cloning Waffle at:"
13 Get-Date
14 New-Item -ItemType Directory -Path "$waffle_source" | Out-Null
15 Push-Location -Path $waffle_source
18 git fetch --depth 1 origin 950a1f35a718bc2a8e1dda75845e52651bb331a7 # of branch master
[all …]
Dmesa_deps_libva.ps11 # Compiling libva/libva-utils deps
4 $MyPath = $MyInvocation.MyCommand.Path | Split-Path -Parent
7 Remove-Item -Recurse -Force -ErrorAction SilentlyContinue "deps" | Out-Null
8 $depsInstallPath="C:\mesa-deps"
10 Write-Host "Cloning libva at:"
11 Get-Date
14 Write-Host "Failed to clone libva repository"
18 Write-Host "Cloning libva finished at:"
19 Get-Date
21 Write-Host "Building libva at:"
[all …]
Dmesa_build.ps17 Write-Host "Refreshing Windows TLS CA cache"
8 (New-Object System.Net.WebClient).DownloadString("https://github.com") >$null
12 Get-Date
13 Write-Host "Compiling Mesa"
14 $builddir = New-Item -Force -ItemType Directory -Name "_build"
15 $installdir = New-Item -Force -ItemType Directory -Name "_install"
20 Remove-Item -Recurse -Force $builddir
21 Remove-Item -Recurse -Force $installdir
22 New-Item -ItemType Directory -Path $builddir
23 New-Item -ItemType Directory -Path $installdir
[all …]
/third_party/ffmpeg/doc/
Dbitstream_filters.texi6 the configure option @code{--list-bsfs}.
9 @code{--disable-bsfs}, and selectively enable any bitstream filter using
10 the option @code{--enable-bsf=BSF}, or you can disable a particular
11 bitstream filter using the option @code{--disable-bsf=BSF}.
13 The option @code{-bsfs} of the ff* tools will display the list of
16 The ff* tools have a -bsf option applied per stream, taking a
17 comma-separated list of filters, whose parameters follow the filter
21 ffmpeg -i INPUT -c:v copy -bsf:v filter1[=opt1=str1:opt2=str2][,filter2] OUTPUT
29 Convert MPEG-2/4 AAC ADTS to an MPEG-4 Audio Specific Configuration
32 This filter creates an MPEG-4 AudioSpecificConfig from an MPEG-2/4
[all …]
/third_party/python/Lib/venv/scripts/common/
DActivate.ps126 Activate.ps1 -Verbose
31 Activate.ps1 -VenvDir C:\Users\MyUser\Common\.venv
35 Activate.ps1 -Prompt "MyPython"
45 PS C:\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
60 <# Function declarations --------------------------------------------------- #>
64 Remove all shell session elements added by the Activate script, including the
69 If present, do not remove this function from the global namespace for the
77 if (Test-Path -Path Function:_OLD_VIRTUAL_PROMPT) { in global:deactivate()
78 Copy-Item -Path Function:_OLD_VIRTUAL_PROMPT -Destination Function:prompt in global:deactivate()
79 Remove-Item -Path Function:_OLD_VIRTUAL_PROMPT in global:deactivate()
[all …]
/third_party/rust/rust/compiler/rustc_resolve/src/
Dcheck_unused.rs13 // - `UnusedImportCheckVisitor` walks the AST to find all the unused imports
15 // the parent `use` item
17 // - `calc_unused_spans` then walks over all the `use` items marked in the
21 // will remove
23 // - `check_crate` finally emits the diagnostics based on the data generated
67 /// Span from the item
73 /// Whether the item has attrs.
96 self.r.maybe_unused_trait_imports.remove(&def_id); in check_import()
98 i.unused.remove(&id); in check_import()
103 fn unused_import(&mut self, id: ast::NodeId) -> &mut UnusedImport<'a> { in unused_import()
[all …]
/third_party/rust/rust/compiler/rustc_expand/src/
Dplaceholders.rs15 ) -> AstFragment { in placeholder()
16 fn mac_placeholder() -> P<ast::MacCall> { in placeholder()
60 AstFragmentKind::Items => AstFragment::Items(smallvec![P(ast::Item { in placeholder()
198 fn remove(&mut self, id: ast::NodeId) -> AstFragment { in remove() method
199 self.expanded_fragments.remove(&id).unwrap() in remove()
204 fn flat_map_arm(&mut self, arm: ast::Arm) -> SmallVec<[ast::Arm; 1]> { in flat_map_arm()
206 self.remove(arm.id).make_arms()
212 fn flat_map_expr_field(&mut self, field: ast::ExprField) -> SmallVec<[ast::ExprField; 1]> { in flat_map_expr_field()
214 self.remove(field.id).make_expr_fields()
220 fn flat_map_pat_field(&mut self, fp: ast::PatField) -> SmallVec<[ast::PatField; 1]> { in flat_map_pat_field()
[all …]
/third_party/mindspore/mindspore-src/source/tests/ut/python/mindrecord/
Dskip_test_issue.py7 # http://www.apache.org/licenses/LICENSE-2.0
44 logger.info("#item{}: {}".format(index, x))
47 os.remove("{}".format(CV_FILE_NAME))
48 os.remove("{}.db".format(CV_FILE_NAME))
64 logger.info("#item{}: {}".format(index, x))
69 for item in paths:
70 os.remove("{}".format(item))
71 os.remove("{}.db".format(item))
118 assert schema_id == -1
184 logger.info("#item{}: {}".format(index, raw))
[all …]
/third_party/icu/tools/unicodetools/com/ibm/rbm/
DBundle.java3 * Copyright (C) 2000-2007, International Business Machines Corporation and *
27 * meta-data in a resource bundle formatted by RBManager
112 * Encodings are of the form -> language_country_variant <- (for example: "en_us_southern").
125 * Encodings are of the form -> language_country_variant <- (for example: "en_us_southern").
140 * Encodings are of the form -> language_country_variant <- (for example: "en_us_southern").
177 BundleItem item = null; in removeUntranslatedItemsByGroup() local
178 item = (BundleItem)iter.next(); in removeUntranslatedItemsByGroup()
179 if (item != null && item.getParentGroup().getName().equals(groupName)) { in removeUntranslatedItemsByGroup()
180 removeUntranslatedItem(item.getKey()); in removeUntranslatedItemsByGroup()
189 * Checks to see if an item of the given key name exists in the set of untranslated items. If
[all …]
/third_party/rust/rust/tests/ui/suggestions/
Drecover-from-semicolon-trailing-item.stderr1 error: expected item, found `;`
2 --> $DIR/recover-from-semicolon-trailing-item.rs:2:9
5 | ^ help: remove this semicolon
7 error: expected item, found `;`
8 --> $DIR/recover-from-semicolon-trailing-item.rs:4:12
11 | ^ help: remove this semicolon
15 error: expected item, found `;`
16 --> $DIR/recover-from-semicolon-trailing-item.rs:6:20
19 | ^ help: remove this semicolon
22 --> $DIR/recover-from-semicolon-trailing-item.rs:10:20
[all …]
/third_party/rust/rust/compiler/rustc_parse/
Dmessages.ftl5 … .help = if you meant to call a macro, remove the `pub` and add a trailing `!` after the identifier
46 .suggestion = remove the `..`
50 .suggestion = remove the return type
52 parse_bare_cr = {$double_quotes ->
81 .suggestion = remove this comma
95 .help = if you meant to overwrite, remove the `let` binding
108 .suggestion = remove `let`
110 parse_cr_doc_comment = bare CR not allowed in {$block ->
111 [true] block doc-comment
112 *[false] doc-comment
[all …]
/third_party/grpc/third_party/toolchains/dockerfile/rbe_windows2019/
DDockerfile1 # This dockerfile is taken from go/rbe-windows-user-guide
14 # downloads with Invoke-WebRequest not show the progress bar and is MUCH faster).
15 SHELL ["powershell.exe", "-ExecutionPolicy", "Bypass", "-Command", "$ErrorActionPreference='Stop'; …
18 RUN Get-NetAdapter | Where-Object Name -like "*Ethernet*" | ForEach-Object { \
20 …$gateway = (Get-NetRoute | Where { $_.DestinationPrefix -eq \"0.0.0.0/0\" } | Sort-Object RouteMet…
22 $ifIndex = (Get-NetAdapter -InterfaceDescription \"Hyper-V Virtual Ethernet*\" | Sort-Object \
24 New-NetRoute -DestinationPrefix 169.254.169.254/32 -InterfaceIndex $ifIndex -NextHop $gateway
26 RUN New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem \
27 -Name LongPathsEnabled -Value 1 -PropertyType DWORD -Force
28 # Install Visual C++ Redistributable for Visual Studio 2015-2022.
[all …]
/third_party/rust/rust/tests/ui/traits/bound/
Dnot-on-struct.stderr2 --> $DIR/not-on-struct.rs:25:25
4 LL | fn e() -> 'static + A + 'static {
8 --> $DIR/not-on-struct.rs:29:53
10 LL | fn f<'a,T,E>(iter: Iterator<Item='a + Result<T,E> + 'a>) {
14 --> $DIR/not-on-struct.rs:8:16
19 help: `+` is used to constrain a "trait object" type with lifetimes or auto-traits; structs and enu…
20 --> $DIR/not-on-struct.rs:8:22
23 | --- ^^^^ ...because of this bound
28 --> $DIR/not-on-struct.rs:10:29
34 --> $DIR/not-on-struct.rs:13:11
[all …]
/third_party/python/Lib/
D_weakrefset.py2 # This code is separated-out because it is needed
15 # This technique should be relatively thread-safe (since sets are).
31 s.remove(self)
39 def _remove(item, selfref=ref(self)): argument
43 self._pending_removals.append(item)
45 self.data.discard(item)
58 item = pop()
61 discard(item)
66 item = itemref()
67 if item is not None:
[all …]
Dqueue.py1 '''A multi-producer, multi-consumer queue.'''
44 # Notify not_empty whenever an item is added to the queue; a
48 # Notify not_full whenever an item is removed from the queue;
66 for every item that had been put() into the queue).
72 unfinished = self.unfinished_tasks - 1
82 The count of unfinished tasks goes up whenever an item is added to the
84 to indicate the item was retrieved and all work on it is complete.
122 def put(self, item, block=True, timeout=None): argument
123 '''Put an item into the queue.
127 a non-negative number, it blocks at most 'timeout' seconds and raises
[all …]
/third_party/python/Lib/asyncio/
Dqueues.py26 queue reaches maxsize, until an item is removed by get().
29 with qsize(), since your single-threaded asyncio application won't be
53 def _put(self, item): argument
54 self._queue.append(item)
110 async def put(self, item): argument
111 """Put an item into the queue.
113 Put an item into the queue. If the queue is full, wait until a free
114 slot is available before adding item.
125 self._putters.remove(putter)
135 return self.put_nowait(item)
[all …]
/third_party/mesa3d/.gitlab-ci/container/
Dget-firmware-from-source.sh2 # shellcheck disable=SC2046 # we want to arg-split FIRMWARE_FILES
6 set -e
11 if [ -n "${FIRMWARE_FILES:-}" ]; then
12 FIRMWARE=$(jq -s '.' $(echo "$FIRMWARE_FILES"))
21 for item in $(echo "$FIRMWARE" | jq -c '.[]'); do
22 src=$(echo "$item" | jq -r '.src')
23 git_hash=$(echo "$item" | jq -r '.git_hash')
24 dst=$(echo "$item" | jq -r '.dst')
27 echo "Missing src or dst for $item."
31 # Remove any trailing slashes from src and dst
[all …]
/third_party/vk-gl-cts/scripts/khr_util/
Dregistry.py1 # -*- coding: utf-8 -*-
3 #-------------------------------------------------------------------------
5 # --------------------------------------
13 # http://www.apache.org/licenses/LICENSE-2.0
21 #-------------------------------------------------------------------------
91 def append(self, item): argument
92 keys = self.getkeys(item)
94 self[key] = item
95 self.items.append(item)
98 for item in items:
[all …]
/third_party/skia/m133/third_party/externals/icu/source/test/depstest/
Ddependencies.py1 #! /usr/bin/python -B
2 # -*- coding: utf-8 -*-
6 # Copyright (C) 2011-2014, International Business Machines
19 items: Map from library or group names to item maps.
20 Each item has a "type" ("library" or "group" or "system_symbols").
21 A library or group item can have an optional set of "files" (as in the files attribute).
22 Each item can have an optional set of "deps" (libraries & groups).
23 A group item also has a "library" name unless it is a group of system symbols.
24 The one "system_symbols" item and its groups have sets of "system_symbols"
25 with standard-library system symbol names.
[all …]
/third_party/icu/icu4c/source/test/depstest/
Ddependencies.py1 #! /usr/bin/python -B
2 # -*- coding: utf-8 -*-
6 # Copyright (C) 2011-2014, International Business Machines
19 items: Map from library or group names to item maps.
20 Each item has a "type" ("library" or "group" or "system_symbols").
21 A library or group item can have an optional set of "files" (as in the files attribute).
22 Each item can have an optional set of "deps" (libraries & groups).
23 A group item also has a "library" name unless it is a group of system symbols.
24 The one "system_symbols" item and its groups have sets of "system_symbols"
25 with standard-library system symbol names.
[all …]

12345678910>>...44