Home
last modified time | relevance | path

Searched refs:string_view (Results 1 – 25 of 428) sorted by relevance

12345678910>>...18

/external/tensorflow/tensorflow/stream_executor/
Dkernel_spec.h79 explicit KernelLoaderSpec(absl::string_view kernelname);
104 OnDiskKernelLoaderSpec(absl::string_view filename,
105 absl::string_view kernelname);
116 CudaPtxOnDisk(absl::string_view filename, absl::string_view kernelname);
128 CudaCubinOnDisk(absl::string_view filename, absl::string_view kernelname);
146 typedef std::tuple<int, int, absl::string_view> PtxSpec;
156 CudaPtxInMemory(absl::string_view ptx, absl::string_view kernelname,
163 absl::string_view kernel_name, bool ptx_compressed = false);
221 OpenCLTextOnDisk(absl::string_view filename, absl::string_view kernelname);
233 OpenCLBinaryOnDisk(absl::string_view filename, absl::string_view kernelname);
[all …]
Dkernel_spec.cc21 KernelLoaderSpec::KernelLoaderSpec(absl::string_view kernelname) in KernelLoaderSpec()
24 OnDiskKernelLoaderSpec::OnDiskKernelLoaderSpec(absl::string_view filename, in OnDiskKernelLoaderSpec()
25 absl::string_view kernelname) in OnDiskKernelLoaderSpec()
28 CudaPtxOnDisk::CudaPtxOnDisk(absl::string_view filename, in CudaPtxOnDisk()
29 absl::string_view kernelname) in CudaPtxOnDisk()
32 CudaCubinOnDisk::CudaCubinOnDisk(absl::string_view filename, in CudaCubinOnDisk()
33 absl::string_view kernelname) in CudaCubinOnDisk()
37 absl::string_view kernelname) in CudaCubinInMemory()
49 CudaPtxInMemory::CudaPtxInMemory(absl::string_view ptx, in CudaPtxInMemory()
50 absl::string_view kernel_name, in CudaPtxInMemory()
[all …]
/external/tensorflow/tensorflow/core/grappler/
Dmutable_graph_view.h83 Status UpdateNode(absl::string_view node_name, absl::string_view op,
84 absl::string_view device,
91 Status UpdateNodeName(absl::string_view from_node_name,
92 absl::string_view to_node_name, bool update_fanouts);
118 Status SwapNodeNames(absl::string_view from_node_name,
119 absl::string_view to_node_name, bool update_fanouts);
133 Status UpdateFanouts(absl::string_view from_node_name,
134 absl::string_view to_node_name);
141 Status AddRegularFanin(absl::string_view node_name, const TensorId& fanin);
151 Status AddRegularFaninByPort(absl::string_view node_name, int port,
[all …]
Dmutable_graph_view.cc90 absl::string_view control_node_name) { in CanDedupControlWithRegularInput()
98 absl::string_view fanin_node_name) { in HasRegularFaninNode()
115 absl::string_view to_node_name) { in SwapControlledFanoutInputs()
116 absl::string_view from_node_name(control_fanouts->first.node->name()); in SwapControlledFanoutInputs()
132 absl::string_view to_node_name, int max_port) { in SwapRegularFanoutInputs()
249 Status MutationError(absl::string_view function_name, absl::string_view params, in MutationError()
250 absl::string_view msg) { in MutationError()
255 using ErrorHandler = std::function<Status(absl::string_view)>;
257 ErrorHandler UpdateFanoutsError(absl::string_view from_node_name, in UpdateFanoutsError()
258 absl::string_view to_node_name) { in UpdateFanoutsError()
[all …]
Dgraph_topology_view.h71 bool HasNode(absl::string_view node_name) const;
74 const NodeDef* GetNode(absl::string_view node_name) const;
80 const absl::optional<int> GetNodeIndex(absl::string_view node_name) const;
101 std::vector<absl::string_view> index_to_node_name_;
102 absl::flat_hash_map<absl::string_view, int> node_name_to_index_;
/external/tensorflow/tensorflow/compiler/xla/service/
Ddump.h40 void DumpToFileInDir(const HloModule& module, absl::string_view file_suffix,
41 absl::string_view contents);
46 absl::string_view file_suffix,
47 absl::string_view contents);
55 void DumpHloModuleIfEnabled(const HloModule& module, absl::string_view name);
58 absl::string_view name);
61 absl::string_view name);
65 void DumpHloModuleBetweenPassesIfEnabled(absl::string_view pipeline_name,
66 absl::string_view before_pass_name,
67 absl::string_view after_pass_name,
[all …]
Ddump.cc33 using absl::string_view;
77 should_dump_module = [pattern](string_view module_name) { in CanonicalDebugOptions()
82 should_dump_module = [](string_view) { return true; }; in CanonicalDebugOptions() argument
84 should_dump_module = [](string_view) { return false; }; in CanonicalDebugOptions() argument
91 should_dump_pass = [pattern](string_view pass_name) { in CanonicalDebugOptions()
95 should_dump_pass = [](string_view) { return false; }; in CanonicalDebugOptions() argument
111 should_dump_module = [](string_view) { return false; }; in CanonicalDebugOptions() argument
112 should_dump_pass = [](string_view) { return false; }; in CanonicalDebugOptions() argument
120 std::function<bool(string_view module_name)> should_dump_module;
121 std::function<bool(string_view pass_name)> should_dump_pass;
[all …]
Dhlo_parser.h36 absl::string_view str, const HloModuleConfig& config);
41 Status ParseHloString(absl::string_view str, HloModule* module);
45 StatusOr<std::unique_ptr<HloModule>> ParseHloString(absl::string_view str);
50 StatusOr<HloSharding> ParseSharding(absl::string_view str);
55 StatusOr<std::vector<bool>> ParseParameterReplication(absl::string_view str);
58 StatusOr<Window> ParseWindow(absl::string_view str);
63 absl::string_view str);
66 StatusOr<PaddingConfig> ParsePaddingConfig(absl::string_view str);
69 StatusOr<Shape> ParseShape(absl::string_view str);
Dhlo_pass_pipeline.h38 absl::string_view name() const override { return name_; } in name()
77 absl::string_view after_pass_name,
78 absl::string_view before_pass_name);
79 void MaybeDumpHlo(const HloModule& module, absl::string_view after_pass_name,
80 absl::string_view before_pass_name);
85 Status RunInvariantCheckers(HloT* hlo, absl::string_view after_pass_name);
/external/grpc-grpc/src/cpp/ext/filters/census/
Dgrpc_plugin.cc90 ABSL_CONST_INIT const absl::string_view
94 ABSL_CONST_INIT const absl::string_view kRpcClientSentBytesPerRpcMeasureName =
97 ABSL_CONST_INIT const absl::string_view
101 ABSL_CONST_INIT const absl::string_view
105 ABSL_CONST_INIT const absl::string_view kRpcClientRoundtripLatencyMeasureName =
108 ABSL_CONST_INIT const absl::string_view kRpcClientServerLatencyMeasureName =
112 ABSL_CONST_INIT const absl::string_view
116 ABSL_CONST_INIT const absl::string_view kRpcServerSentBytesPerRpcMeasureName =
119 ABSL_CONST_INIT const absl::string_view
123 ABSL_CONST_INIT const absl::string_view
[all …]
Dcontext.h46 explicit CensusContext(absl::string_view name) in CensusContext()
49 CensusContext(absl::string_view name, const ::opencensus::trace::Span* parent) in CensusContext()
52 CensusContext(absl::string_view name, in CensusContext()
86 void GenerateServerContext(absl::string_view tracing, absl::string_view stats,
87 absl::string_view primary_role,
88 absl::string_view method, CensusContext* context);
94 void GenerateClientContext(absl::string_view method, CensusContext* ctxt,
111 absl::string_view StatusCodeToString(grpc_status_code code);
113 inline absl::string_view GetMethod(const grpc_slice* path) { in GetMethod()
118 return absl::StripPrefix(absl::string_view(reinterpret_cast<const char*>( in GetMethod()
Dgrpc_plugin.h40 extern const absl::string_view kRpcClientSentMessagesPerRpcMeasureName;
41 extern const absl::string_view kRpcClientSentBytesPerRpcMeasureName;
42 extern const absl::string_view kRpcClientReceivedMessagesPerRpcMeasureName;
43 extern const absl::string_view kRpcClientReceivedBytesPerRpcMeasureName;
44 extern const absl::string_view kRpcClientRoundtripLatencyMeasureName;
45 extern const absl::string_view kRpcClientServerLatencyMeasureName;
47 extern const absl::string_view kRpcServerSentMessagesPerRpcMeasureName;
48 extern const absl::string_view kRpcServerSentBytesPerRpcMeasureName;
49 extern const absl::string_view kRpcServerReceivedMessagesPerRpcMeasureName;
50 extern const absl::string_view kRpcServerReceivedBytesPerRpcMeasureName;
[all …]
Dcontext.cc28 void GenerateServerContext(absl::string_view tracing, absl::string_view stats, in GenerateServerContext()
29 absl::string_view primary_role, in GenerateServerContext()
30 absl::string_view method, CensusContext* context) { in GenerateServerContext()
37 void GenerateClientContext(absl::string_view method, CensusContext* ctxt, in GenerateClientContext()
69 return RpcServerStatsEncoding::Decode(absl::string_view(buf, buf_size), in ServerStatsDeserialize()
89 absl::string_view StatusCodeToString(grpc_status_code code) { in StatusCodeToString()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dxla_op_kernel.h77 DataType InputType(absl::string_view name);
88 TensorShape InputShape(absl::string_view name);
95 xla::XlaOp Input(absl::string_view name);
105 Status InputList(absl::string_view name, std::vector<xla::XlaOp>* handles,
114 Status ConstantInput(absl::string_view name, xla::Literal* constant_literal);
118 Status ConstantInputAsIntScalar(absl::string_view name, int64* out);
125 Status ConstantInputAsIntVector(absl::string_view name,
131 Status ConstantInputReshapedToIntVector(absl::string_view name,
136 Status ConstantInputAsInt64Literal(absl::string_view name, xla::Literal* out);
148 Status ConstantInputList(absl::string_view name,
[all …]
Dresource_operation_table.cc21 /*static*/ absl::string_view XlaResourceOpInfo::XlaResourceOpKindToString( in XlaResourceOpKindToString()
33 static absl::flat_hash_map<absl::string_view, XlaResourceOpInfo>*
35 auto* result = new absl::flat_hash_map<absl::string_view, XlaResourceOpInfo>; in CreateResourceOpInfoMap()
37 auto add = [&](absl::string_view op, XlaResourceOpKind op_kind, in CreateResourceOpInfoMap()
111 static const absl::flat_hash_map<absl::string_view, XlaResourceOpInfo>&
113 static absl::flat_hash_map<absl::string_view, XlaResourceOpInfo>* in GetStaticResourceOpInfoMap()
118 const XlaResourceOpInfo* GetResourceOpInfoForOp(absl::string_view op) { in GetResourceOpInfoForOp()
119 const absl::flat_hash_map<absl::string_view, XlaResourceOpInfo>& op_infos = in GetResourceOpInfoForOp()
126 std::vector<absl::string_view> GetKnownResourceOps() { in GetKnownResourceOps()
127 std::vector<absl::string_view> result; in GetKnownResourceOps()
/external/googletest/googletest/src/
Dgtest-matchers.cc107 Matcher<const absl::string_view&>::Matcher(const std::string& s) { in Matcher()
114 Matcher<const absl::string_view&>::Matcher(const ::string& s) { *this = Eq(s); } in Matcher()
119 Matcher<const absl::string_view&>::Matcher(const char* s) { in Matcher()
125 Matcher<const absl::string_view&>::Matcher(absl::string_view s) { in Matcher()
131 Matcher<absl::string_view>::Matcher(const std::string& s) { *this = Eq(s); } in Matcher()
136 Matcher<absl::string_view>::Matcher(const ::string& s) { *this = Eq(s); } in Matcher()
141 Matcher<absl::string_view>::Matcher(const char* s) { in Matcher()
147 Matcher<absl::string_view>::Matcher(absl::string_view s) { in Matcher()
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
Dllvm_loop.h84 absl::string_view prefix, llvm::Value* start_index,
139 ForLoop(absl::string_view prefix, absl::string_view suffix,
146 llvm::BasicBlock* CreateLoopBB(absl::string_view name, llvm::IRBuilder<>* b);
150 string GetQualifiedName(absl::string_view name);
180 ForLoopNest(absl::string_view name, llvm::IRBuilder<>* b,
197 absl::string_view suffix, llvm::Value* start_index,
204 absl::string_view suffix, llvm::Value* start_index,
213 absl::string_view suffix,
219 int64 start_index, int64 end_index, absl::string_view suffix,
234 IrArray::Index AddLoopsForShape(const Shape& shape, absl::string_view suffix);
[all …]
Dkernel_support_library.h52 absl::string_view name, llvm::Value* start, llvm::Value* end,
58 absl::string_view name, llvm::Value* start, llvm::Value* end, in For()
72 absl::string_view name, int64 start, int64 end, int64 step, in ForWithStatus()
81 absl::string_view name, int64 start, int64 end, int64 step, in For()
104 absl::string_view name, llvm::Value* start, llvm::Value* end,
110 void For(absl::string_view name, llvm::Value* start, llvm::Value* end, in For()
124 absl::string_view name, llvm::Value* start, llvm::Value* end, int64 step, in ForWithStatus()
135 void For(absl::string_view name, llvm::Value* start, llvm::Value* end, in For()
146 absl::string_view name, llvm::Value* start, llvm::Value* end, in ForWithStatus()
157 absl::string_view name, llvm::Value* start, llvm::Value* end, in For()
[all …]
Dllvm_loop.cc33 ForLoop::ForLoop(absl::string_view prefix, absl::string_view suffix, in ForLoop()
47 absl::string_view prefix, llvm::Value* start_index, llvm::Value* end_index, in EmitForLoop()
167 string ForLoop::GetQualifiedName(absl::string_view name) { in GetQualifiedName()
171 llvm::BasicBlock* ForLoop::CreateLoopBB(absl::string_view name, in CreateLoopBB()
176 std::unique_ptr<ForLoop> ForLoopNest::AddLoop(absl::string_view suffix, in AddLoop()
186 absl::string_view suffix, llvm::Value* start_index, llvm::Value* end_index, in AddLoop()
212 absl::string_view suffix, in AddLoop()
223 absl::string_view suffix, in AddLoop()
234 absl::string_view suffix) { in AddLoopsForShape()
243 absl::string_view suffix) { in AddLoopsForShapeOnDimensions()
[all …]
Dllvm_util.h52 inline llvm::StringRef AsStringRef(absl::string_view str) { in AsStringRef()
91 string IrName(absl::string_view a, absl::string_view b);
92 string IrName(const HloInstruction* a, absl::string_view b = "");
160 absl::string_view name);
170 absl::string_view name,
178 absl::string_view name,
186 absl::string_view name,
218 LlvmIfData EmitIfThenElse(llvm::Value* condition, absl::string_view name,
288 absl::string_view name, llvm::Module* module);
/external/tensorflow/tensorflow/lite/toco/
Dargs.cc62 bool SplitStructuredLine(absl::string_view line, char delimiter, in SplitStructuredLine()
64 std::vector<absl::string_view>* cols) { in SplitStructuredLine()
96 inline bool TryStripPrefixString(absl::string_view str, in TryStripPrefixString()
97 absl::string_view prefix, string* result) { in TryStripPrefixString()
103 inline bool TryStripSuffixString(absl::string_view str, in TryStripSuffixString()
104 absl::string_view suffix, string* result) { in TryStripSuffixString()
120 for (absl::string_view part : absl::StrSplit(text, ',')) { in Parse()
136 std::vector<absl::string_view> outer_vector; in Parse()
137 absl::string_view text_disposable_copy = text; in Parse()
140 for (const absl::string_view& outer_member_stringpiece : outer_vector) { in Parse()
/external/libcxx/include/experimental/
Dstring_view2 //===------------------------ string_view ---------------------------------===//
16 _LIBCPP_WARNING("<experimental/string_view> has been removed. Use <string_view> instead.")
18 # warning "<experimental/string_view> has been removed. Use <string_view> instead."
/external/tensorflow/tensorflow/core/kernels/lookup_tables/
Dflat_hash_map_op_kernels.cc41 : public virtual LookupInterface<ValueType*, const absl::string_view&>,
44 absl::Span<ValueType>, absl::Span<const absl::string_view>>,
48 absl::Span<const ValueType>, absl::Span<const absl::string_view>>,
62 Status Initialize(absl::Span<const absl::string_view> keys, in Initialize()
92 Status Lookup(const absl::string_view& key, ValueType* value) const override { in Lookup()
103 Status Lookup(absl::Span<const absl::string_view> keys, in Lookup()
211 if (keys_flat(0).get<absl::string_view>() == nullptr) { in AllocateContainer()
238 std::vector<typename absl::string_view> keys_vec; in Initialize()
241 keys_vec.push_back(*keys[i].get<absl::string_view>()); in Initialize()
253 LookupInterface<ValueType*, const absl::string_view&>,
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/gpu/llvm_gpu_backend/
Dutils.cc55 string ReplaceFilenameExtension(absl::string_view filename, in ReplaceFilenameExtension()
56 absl::string_view new_extension) { in ReplaceFilenameExtension()
58 absl::string_view stem = pos == absl::string_view::npos in ReplaceFilenameExtension()
60 : absl::string_view(filename.data(), pos); in ReplaceFilenameExtension()
/external/tensorflow/tensorflow/compiler/xla/
Dtext_literal_reader.cc43 StatusOr<Literal> TextLiteralReader::ReadPath(absl::string_view path) { in ReadPath()
80 std::vector<absl::string_view> pieces; in ReadAllLines()
81 std::vector<absl::string_view> coordinates; in ReadAllLines()
86 absl::string_view coordinates_string = in ReadAllLines()
88 absl::string_view value_string = absl::StripAsciiWhitespace(pieces[1]); in ReadAllLines()
104 for (absl::string_view piece : coordinates) { in ReadAllLines()

12345678910>>...18