Home
last modified time | relevance | path

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

12345678910>>...41

/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 …]
Dtest_save_op.py1 # Copyright 2020-2022 Huawei Technologies Co., Ltd
7 # http://www.apache.org/licenses/LICENSE-2.0
36 """add/remove cv file"""
38 os.remove("{}".format(file_name))
40 os.remove("{}.db".format(file_name))
49 file_name = os.environ.get('PYTEST_CURRENT_TEST').split(':')[-1].split(' ')[0]
50 data = [{"image1": bytes("image1 bytes abcddddd", encoding='UTF-8'),
51 "image2": bytes("image1 bytes def", encoding='UTF-8'),
52 "image3": bytes("image1 bytes ghixxxxxxxxxx", encoding='UTF-8'),
53 "image4": bytes("image1 bytes jklzz", encoding='UTF-8'),
[all …]
Dtest_minddataset_sampler.py1 # Copyright 2019-2022 Huawei Technologies Co., Ltd
7 # http://www.apache.org/licenses/LICENSE-2.0
32 """add/remove cv file"""
33 file_name = os.environ.get('PYTEST_CURRENT_TEST').split(':')[-1].split(' ')[0]
39 os.remove("{}".format(x))
41 os.remove("{}.db".format(x))
55 os.remove("{}".format(x))
56 os.remove("{}.db".format(x))
60 os.remove("{}".format(x))
61 os.remove("{}.db".format(x))
[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/mesa3d/.gitlab-ci/windows/
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 Get-Date
12 Write-Host "Cloning LLVM release/12.x"
13 git clone -b release/12.x --depth=1 https://github.com/llvm/llvm-project deps/llvm-project
15 Write-Host "Failed to clone LLVM repository"
20 # but as of today, SPIRV-LLVM-Translator doesn't have
22 Get-Date
23 Write-Host "Cloning SPIRV-LLVM-Translator"
[all …]
Dmesa_deps_choco.ps12 Get-Date
3 Write-Host "Updating TLS certificate store"
4 Remove-Item -Recurse -Force -ErrorAction SilentlyContinue "_tlscerts" | Out-Null
5 $certdir = (New-Item -ItemType Directory -Name "_tlscerts")
6 certutil -syncwithWU "$certdir"
7 Foreach ($file in (Get-ChildItem -Path "$certdir\*" -Include "*.crt")) {
8 Import-Certificate -FilePath $file -CertStoreLocation Cert:\LocalMachine\Root | Out-Null
10 Remove-Item -Recurse -Path $certdir
13 Get-Date
14 Write-Host "Installing Chocolatey"
[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 …]
Dmesa_deps_test.ps11 Get-Date
2 Write-Host "Downloading Freeglut"
4 $freeglut_zip = 'freeglut-MSVC.zip'
7 For ($i = 0; $i -lt 5; $i++) {
8 Invoke-WebRequest -Uri $freeglut_url -OutFile $freeglut_zip
16 Write-Host "Failed to download Freeglut"
20 Get-Date
21 Write-Host "Installing Freeglut"
22 Expand-Archive $freeglut_zip -DestinationPath C:\
24 Write-Host "Failed to install Freeglut"
[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/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/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/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/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 …]
/third_party/mindspore/mindspore-src/source/mindspore/core/utils/
Dordered_map.h2 * Copyright 2019-2021 Huawei Technologies Co., Ltd
8 * http://www.apache.org/licenses/LICENSE-2.0
83 for (auto &item : other) { in OrderedMap()
84 (void)emplace(item.first, item.second); in OrderedMap()
94 for (auto &item : other.sequential_data_) {
95 (void)emplace(item.first, item.second);
118 auto [map_iter, inserted] = map_data_.emplace(&(new_iter->first), new_iter); in emplace()
122 return {map_iter->second, inserted}; in emplace()
128 return {iter->second, false}; in insert()
131 auto result = map_data_.emplace(&(new_iter->first), new_iter); in insert()
[all …]
/third_party/icu/icu4c/packaging/
Ddistrelease.ps13 #-------------------------
6 # Date: 2017-04-14
7 #-------------------------
9 # This builds a zipfile containing the 64-bit (x64) and/or 32-bit (x86) Windows binaries.
15 # Set-ExecutionPolicy -Scope Process Unrestricted
16 # .\packaging\distrelease.ps1 -arch "x64 or x86 or ARM64"
18 # Will emit: c:\icu4c\icu\source\dist\icu-windows.zip
22 …wershell.core/about/about_execution_policies?view=powershell-5.1&viewFallbackFrom=powershell-Micro…
29 $icuDir = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent
30 $icuDir = Resolve-Path -Path '$icuDir\..'
[all …]
/third_party/skia/include/private/
DSkTHash.h4 * Use of this source code is governed by a BSD-style license that can be
22 // - static K GetKey(T)
23 // - static uint32_t Hash(K)
85 this->resize(fCapacity > 0 ? fCapacity * 2 : 4); in set()
87 return this->uncheckedSet(std::move(val)); in set()
93 int index = hash & (fCapacity-1); in find()
102 index = this->next(index); in find()
111 if (T* p = this->find(key)) { in findOrNull()
117 // Remove the value with this key from the hash table.
118 void remove(const K& key) { in remove() function
[all …]
/third_party/typescript/tests/baselines/reference/
DinterfaceDeclaration4.js2 // Import this module when test harness supports external modules. Also remove the internal module …
5 export interface I1 { item: string; }
10 public item:string;
15 item:string;
20 item:number;
27 // Err - not implemented item
44 // Import this module when test harness supports external modules. Also remove the internal module …
60 // Err - not implemented item
/third_party/icu/icu4c/source/tools/icupkg/
Dicupkg.8.in1 .\" Hey, Emacs! This is -*-nroff-*- you know...
7 .\" Copyright (C) 2000-2006 IBM, Inc. and others.
12 \- extract or modify an ICU
30 .BI "\-C\fP, \fB\-\-comment" " comment"
33 .BI "\-a\fP, \fB\-\-add" " list"
36 .BI "\-r\fP, \fB\-\-remove" " list"
39 .BI "\-x\fP, \fB\-\-extract" " list"
42 .BI "\-l\fP, \fB\-\-list"
45 .BI "\-s\fP, \fB\-\-sourcedir" " source"
48 .BI "\-d\fP, \fB\-\-destdir" " destination"
[all …]
/third_party/skia/third_party/externals/icu/source/tools/icupkg/
Dicupkg.8.in1 .\" Hey, Emacs! This is -*-nroff-*- you know...
7 .\" Copyright (C) 2000-2006 IBM, Inc. and others.
12 \- extract or modify an ICU
30 .BI "\-C\fP, \fB\-\-comment" " comment"
33 .BI "\-a\fP, \fB\-\-add" " list"
36 .BI "\-r\fP, \fB\-\-remove" " list"
39 .BI "\-x\fP, \fB\-\-extract" " list"
42 .BI "\-l\fP, \fB\-\-list"
45 .BI "\-s\fP, \fB\-\-sourcedir" " source"
48 .BI "\-d\fP, \fB\-\-destdir" " destination"
[all …]
/third_party/skia/third_party/externals/opengl-registry/xml/
Dreadme.tex27 \date{Last updated 2017-01-20}
36 obtained from the OpenGL-Registry github repository at
39 {\bf \href{https://github.com/KhronosGroup/OpenGL-Registry}
40 {https://github.com/KhronosGroup/OpenGL-Registry}}
64 in a Linux command-line environment and have Python 3, the lxml Python
70 \item \code{GL/glext.h} - OpenGL 1.2 (and later) compatibility profile
72 \item \code{GL/glcorearb.h} - OpenGL core profile API + extensions
73 \item \code{GLES/gl.h} - OpenGL compatibility profile API
74 \item \code{GLES/glext.h} - OpenGL ES 1.x extensions
75 \item \code{GLES2/gl2.h} - OpenGL ES 2.x API
[all …]

12345678910>>...41