/external/tensorflow/tensorflow/compiler/xla/tests/ |
D | scatter_test.cc | 29 void RunTest(const string& hlo_text, Literal* operand, in RunTest() 30 Literal* scatter_indices, Literal* updates) { in RunTest() 34 void RunTest(const string& hlo_text, absl::Span<Literal* const> args) { in RunTest() 64 Literal operand = in XLA_TEST_F() 66 Literal scatter_indices = LiteralUtil::CreateR1<int32>({0, 2}); in XLA_TEST_F() 67 Literal updates = LiteralUtil::CreateR2<int32>({{10, 20, 30}, {70, 80, 90}}); in XLA_TEST_F() 95 Literal operand = in XLA_TEST_F() 97 Literal scatter_indices = LiteralUtil::CreateR1<int32>({0, 1}); in XLA_TEST_F() 98 Literal updates = LiteralUtil::CreateR2<int32>({{10, 20, 30}, {70, 80, 90}}); in XLA_TEST_F() 123 Literal operand = in XLA_TEST_F() [all …]
|
D | gather_operation_test.cc | 32 void RunTest(const string& hlo_text, Literal* operand, in RunTest() 33 Literal* start_indices) { in RunTest() 37 void RunTest(const string& hlo_text, absl::Span<Literal* const> args) { in RunTest() 61 Literal operand = in XLA_TEST_F() 63 Literal start_indices = LiteralUtil::CreateR1<int32>({0, 2}); in XLA_TEST_F() 83 Literal operand = in XLA_TEST_F() 87 Literal start_indices = LiteralUtil::CreateR1<int32>({1, 0}); in XLA_TEST_F() 106 Literal operand = in XLA_TEST_F() 108 Literal start_indices = LiteralUtil::CreateR1<int32>({0, 2}); in XLA_TEST_F() 127 Literal operand = in XLA_TEST_F() [all …]
|
D | transfer_manager_test.cc | 72 Literal literal = LiteralUtil::CreateR0<uint32>(42); in XLA_TEST_F() 80 Literal result, in XLA_TEST_F() 87 Literal literal = in XLA_TEST_F() 96 Literal result, in XLA_TEST_F() 110 Literal literal = LiteralUtil::CreateR1<float>(inputs); in XLA_TEST_F() 118 Literal result, in XLA_TEST_F() 128 Literal literal = LiteralUtil::CreateR1<float>(test_vector); in XLA_TEST_F() 136 Literal result, in XLA_TEST_F() 154 Literal result, in XLA_TEST_F() 164 Literal literal = LiteralUtil::CreateR1U8(test_string); in XLA_TEST_F() [all …]
|
D | client_library_test_base.h | 100 StatusOr<Literal> ExecuteAndTransfer( 104 StatusOr<Literal> ExecuteAndTransfer( 112 StatusOr<Literal> ExecuteAndTransferReference( 185 void ComputeAndCompareLiteral(XlaBuilder* builder, const Literal& expected, 188 void ComputeAndCompareLiteral(XlaBuilder* builder, const Literal& expected, 196 StatusOr<Literal> ComputeAndTransfer( 202 XlaBuilder* builder, const Literal& expected, 206 XlaBuilder* builder, const Literal& expected, 217 void ComputeAndCompareTuple(XlaBuilder* builder, const Literal& expected, 219 void ComputeAndCompareTuple(XlaBuilder* builder, const Literal& expected, [all …]
|
D | client_library_test_base.cc | 112 StatusOr<Literal> ClientLibraryTestBase::ExecuteAndTransfer( in ExecuteAndTransfer() 124 StatusOr<Literal> ClientLibraryTestBase::ExecuteAndTransfer( in ExecuteAndTransfer() 132 StatusOr<Literal> ClientLibraryTestBase::ExecuteAndTransferReference( in ExecuteAndTransferReference() 165 Literal expected_literal = LiteralUtil::CreateR1(expected); in ComputeAndCompareR1() 171 XlaBuilder* builder, const Literal& expected, in ComputeAndCompareLiteral() 178 XlaBuilder* builder, const Literal& expected, in ComputeAndCompareLiteral() 186 const xla::XlaComputation& computation, const Literal& expected, in ComputeAndCompareLiteralWithAllOutputLayouts() 188 const std::function<void(const Literal& actual, in ComputeAndCompareLiteralWithAllOutputLayouts() 211 const xla::XlaComputation& computation, const Literal& /*expected*/, in ComputeAndCompareLiteralWithAllInputLayouts() argument 213 const std::function<void(const Literal& actual, in ComputeAndCompareLiteralWithAllInputLayouts() [all …]
|
D | hlo_test_base.cc | 187 StatusOr<Literal> HloTestBase::Execute(std::unique_ptr<HloModule> module, in Execute() 188 absl::Span<Literal* const> arguments) { in Execute() 192 Literal HloTestBase::ExecuteNoHloPasses(std::unique_ptr<HloModule> module, in ExecuteNoHloPasses() 193 absl::Span<Literal* const> arguments) { in ExecuteNoHloPasses() 200 Literal HloTestBase::ExecuteAndTransfer(std::unique_ptr<HloModule> module, in ExecuteAndTransfer() 201 absl::Span<Literal* const> arguments) { in ExecuteAndTransfer() 205 StatusOr<std::vector<Literal>> HloTestBase::ExecuteReplicated( in ExecuteReplicated() 206 std::unique_ptr<HloModule> module, absl::Span<Literal* const> arguments, in ExecuteReplicated() 218 StatusOr<std::vector<Literal>> HloTestBase::ExecuteReplicated( in ExecuteReplicated() 219 std::unique_ptr<HloModule> module, absl::Span<Literal* const> arguments, in ExecuteReplicated() [all …]
|
/external/tensorflow/tensorflow/compiler/xla/ |
D | literal_util.h | 59 static Literal GetFirstScalarLiteral(const LiteralSlice& literal); 71 static Literal CreateR0(NativeT value); 73 static Literal CreateR1(absl::Span<const NativeT> values); 74 static Literal CreateR1(const tensorflow::core::Bitmap& values); 76 static Literal CreateR2( 79 static Literal CreateR2WithLayout( 83 static Literal CreateR3(std::initializer_list< 87 static Literal CreateR3WithLayout( 93 static Literal CreateR4( 98 static Literal CreateR4WithLayout( [all …]
|
D | literal_util.cc | 47 Literal ConvertType(LiteralSlice literal) { in ConvertType() 58 Literal result(result_shape); in ConvertType() 85 /* static */ Literal LiteralUtil::CreateFromDimensions( in CreateFromDimensions() 87 return Literal::CreateFromShape( in CreateFromDimensions() 91 /* static */ Literal LiteralUtil::ConvertBF16ToF32( in ConvertBF16ToF32() 96 /* static */ Literal LiteralUtil::ConvertBF16ToF64( in ConvertBF16ToF64() 101 /* static */ Literal LiteralUtil::ConvertF32ToBF16( in ConvertF32ToBF16() 106 /* static */ Literal LiteralUtil::ConvertF32ToF64( in ConvertF32ToF64() 111 /* static */ Literal LiteralUtil::ConvertF64ToBF16( in ConvertF64ToBF16() 116 /* static */ Literal LiteralUtil::ConvertF64ToF32( in ConvertF64ToF32() [all …]
|
D | literal_test.cc | 95 Literal literal_r4_2x2x3x3_dim0major_; 96 Literal literal_r4_2x2x3x3_dim0minor_; 368 Literal nil(ShapeUtil::MakeNil()); in TEST_F() 397 Literal colmajor(ShapeUtil::MakeShapeWithLayout(F32, {2, 2}, {0, 1})); in TEST_F() 403 Literal rowmajor(ShapeUtil::MakeShapeWithLayout(F32, {2, 2}, {1, 0})); in TEST_F() 502 auto x = Literal::CreateFromShape(tuple.shape()); in TEST_F() 906 Literal output(ShapeUtil::MakeShape(S64, {1})); in TEST_F() 913 Literal output(ShapeUtil::MakeShape(U64, {2})); in TEST_F() 920 Literal output(ShapeUtil::MakeShape(C64, {1})); in TEST_F() 927 Literal output(ShapeUtil::MakeShape(C128, {1})); in TEST_F() [all …]
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | dynamic_padder_test.cc | 379 Literal PadAndExecute(std::unique_ptr<HloModule> module, in PadAndExecute() 380 absl::Span<Literal* const> arguments, in PadAndExecute() 426 Literal operand = in XLA_TEST_F() 428 Literal scatter_indices = LiteralUtil::CreateR1<int32>({0, 2}); in XLA_TEST_F() 429 Literal updates = LiteralUtil::CreateR2<int32>({{10, 20, 30}, {70, 80, 90}}); in XLA_TEST_F() 430 Literal dynamic_size = LiteralUtil::CreateR0<int32>(2); in XLA_TEST_F() 432 Literal not_padded = in XLA_TEST_F() 448 Literal scatter_indices_padded = LiteralUtil::CreateR1<int32>({0, 2, 0, 4}); in XLA_TEST_F() 449 Literal updates_padded = LiteralUtil::CreateR2<int32>( in XLA_TEST_F() 453 Literal padded = PadAndExecute( in XLA_TEST_F() [all …]
|
D | hlo_evaluator.h | 60 StatusOr<Literal> Evaluate(const HloModule& module, in Evaluate() 61 absl::Span<const Literal* const> arg_literals) { in Evaluate() 65 StatusOr<Literal> Evaluate(const HloModule& module, in Evaluate() 66 absl::Span<const Literal> arg_literals) { in Evaluate() 89 StatusOr<Literal> Evaluate(const HloComputation& computation, 90 absl::Span<const Literal* const> arg_literals); 92 StatusOr<Literal> Evaluate(const HloComputation& computation, in Evaluate() 93 absl::Span<const Literal> arg_literals) { in Evaluate() 94 std::vector<const Literal*> arg_literal_ptrs; in Evaluate() 104 StatusOr<Literal> Evaluate(HloInstruction* instruction); [all …]
|
D | hlo_runner_interface.h | 51 std::vector<const Literal*> arguments; 55 const Literal* infeed = nullptr; 72 std::vector<Literal>* outfeed_values = nullptr; 121 StatusOr<Literal> Execute(std::unique_ptr<HloModule> module, 122 absl::Span<const Literal* const> arguments, 127 StatusOr<Literal> Execute(std::unique_ptr<HloModule> module, 128 absl::Span<const Literal> arguments, 132 virtual StatusOr<Literal> Execute(std::unique_ptr<HloModule> module, 133 absl::Span<const Literal* const> arguments, 138 StatusOr<Literal> ExecuteWithExecutable( [all …]
|
D | hlo_runner.h | 59 StatusOr<ScopedShapedBuffer> TransferLiteralToDevice(const Literal& literal); 61 absl::Span<const Literal* const> literals); 63 absl::Span<const Literal> literals); 64 StatusOr<Literal> TransferLiteralFromDevice(const ShapedBuffer& buffer); 74 StatusOr<Literal> Execute(std::unique_ptr<HloModule> module, 75 absl::Span<const Literal* const> arguments, 81 StatusOr<Literal> ExecuteWithExecutable( 83 absl::Span<const Literal* const> arguments, 105 StatusOr<std::vector<Literal>> ExecuteReplicated( 110 StatusOr<std::vector<Literal>> ExecuteReplicated( [all …]
|
D | hlo_evaluator_test.cc | 62 StatusOr<Literal> Evaluate( in Evaluate() 63 absl::Span<const Literal* const> arg_literals = {}) { in Evaluate() 73 Literal EvaluateWithModule( in EvaluateWithModule() 74 HloModule* module, absl::Span<const Literal* const> arg_literals = {}) { in EvaluateWithModule() 82 void TestUnaryOp(HloOpcode opcode, Literal expected, Literal input, in TestUnaryOp() 90 TF_ASSERT_OK_AND_ASSIGN(Literal result, Evaluate()); in TestUnaryOp() 101 void TestBinaryOp(HloOpcode opcode, Literal expected, Literal lhs, in TestBinaryOp() 102 Literal rhs) { in TestBinaryOp() 110 TF_ASSERT_OK_AND_ASSIGN(Literal result, Evaluate()); in TestBinaryOp() 115 void TestTernaryOp(HloOpcode opcode, Literal expected, Literal src0, in TestTernaryOp() [all …]
|
/external/python/setuptools/docs/_theme/nature/static/ |
D | pygments.css | 22 .m { color: #009999 } /* Literal.Number */ 23 .s { color: #bb8844 } /* Literal.String */ 35 .mf { color: #009999 } /* Literal.Number.Float */ 36 .mh { color: #009999 } /* Literal.Number.Hex */ 37 .mi { color: #009999 } /* Literal.Number.Integer */ 38 .mo { color: #009999 } /* Literal.Number.Oct */ 39 .sb { color: #bb8844 } /* Literal.String.Backtick */ 40 .sc { color: #bb8844 } /* Literal.String.Char */ 41 .sd { color: #bb8844 } /* Literal.String.Doc */ 42 .s2 { color: #bb8844 } /* Literal.String.Double */ [all …]
|
/external/rust/crates/regex-automata/tests/ |
D | unescape.rs | 10 Literal, enumerator 17 let mut state = Literal; in unescape() 23 state = Literal; in unescape() 27 state = Literal; in unescape() 31 state = Literal; in unescape() 35 state = Literal; in unescape() 42 state = Literal; in unescape() 51 state = Literal; in unescape() 59 state = Literal; in unescape() 64 state = Literal; in unescape() [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | RawStringLiteralCheck.cpp | 44 const StringLiteral *Literal, in containsEscapedCharacters() argument 47 if (!Literal->isAscii()) in containsEscapedCharacters() 50 for (const unsigned char C : Literal->getBytes()) in containsEscapedCharacters() 55 CharSourceRange::getTokenRange(Literal->getSourceRange()), in containsEscapedCharacters() 71 std::string asRawStringLiteral(const StringLiteral *Literal, in asRawStringLiteral() argument 73 const StringRef Bytes = Literal->getBytes(); in asRawStringLiteral() 125 const auto *Literal = Result.Nodes.getNodeAs<StringLiteral>("lit"); in check() local 126 if (Literal->getBeginLoc().isMacroID()) in check() 129 if (containsEscapedCharacters(Result, Literal, DisallowedChars)) { in check() 130 std::string Replacement = asRawStringLiteral(Literal, DelimiterStem); in check() [all …]
|
/external/python/httplib2/doc/html/_static/ |
D | pygments.css | 26 .m { color: #208050 } /* Literal.Number */ 27 .s { color: #4070a0 } /* Literal.String */ 42 .mf { color: #208050 } /* Literal.Number.Float */ 43 .mh { color: #208050 } /* Literal.Number.Hex */ 44 .mi { color: #208050 } /* Literal.Number.Integer */ 45 .mo { color: #208050 } /* Literal.Number.Oct */ 46 .sb { color: #4070a0 } /* Literal.String.Backtick */ 47 .sc { color: #4070a0 } /* Literal.String.Char */ 48 .sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */ 49 .s2 { color: #4070a0 } /* Literal.String.Double */ [all …]
|
/external/rust/crates/proc-macro2/src/ |
D | lib.rs | 520 Literal(Literal), enumerator 531 TokenTree::Literal(t) => t.span(), in span() 545 TokenTree::Literal(t) => t.set_span(span), in set_span() 568 impl From<Literal> for TokenTree { 569 fn from(g: Literal) -> TokenTree { in from() 570 TokenTree::Literal(g) in from() 584 TokenTree::Literal(t) => Display::fmt(t, f), in fmt() 603 TokenTree::Literal(t) => Debug::fmt(t, f), in fmt() 1005 pub struct Literal { struct 1006 inner: imp::Literal, argument [all …]
|
D | wrapper.rs | 162 TokenTree::Literal(tt) => tt.inner.unwrap_nightly().into(), in into_compiler_token() 337 proc_macro::TokenTree::Literal(l) => crate::Literal::_new(Literal::Compiler(l)).into(), in next() 773 pub(crate) enum Literal { enum 774 Compiler(proc_macro::Literal), 775 Fallback(fallback::Literal), 780 pub fn $name(n: $kind) -> Literal { 782 Literal::Compiler(proc_macro::Literal::$name(n)) 784 Literal::Fallback(fallback::Literal::$name(n)) 792 pub fn $name(n: $kind) -> Literal { 794 Literal::Compiler(proc_macro::Literal::$name(n)) [all …]
|
/external/rust/crates/syn/tests/ |
D | test_grouping.rs | 4 use proc_macro2::{Delimiter, Group, Literal, Punct, Spacing, TokenStream, TokenTree}; 11 TokenTree::Literal(Literal::i32_suffixed(1)), in test_grouping() 16 TokenTree::Literal(Literal::i32_suffixed(2)), in test_grouping() 18 TokenTree::Literal(Literal::i32_suffixed(3)), in test_grouping() 22 TokenTree::Literal(Literal::i32_suffixed(4)), in test_grouping()
|
/external/libnl/doc/stylesheets/ |
D | pygments.css | 30 .highlight .m { color: #666666 } /* Literal.Number */ 31 .highlight .s { color: #BB4444 } /* Literal.String */ 46 .highlight .mf { color: #666666 } /* Literal.Number.Float */ 47 .highlight .mh { color: #666666 } /* Literal.Number.Hex */ 48 .highlight .mi { color: #666666 } /* Literal.Number.Integer */ 49 .highlight .mo { color: #666666 } /* Literal.Number.Oct */ 50 .highlight .sb { color: #BB4444 } /* Literal.String.Backtick */ 51 .highlight .sc { color: #BB4444 } /* Literal.String.Char */ 52 .highlight .sd { color: #BB4444; font-style: italic } /* Literal.String.Doc */ 53 .highlight .s2 { color: #BB4444 } /* Literal.String.Double */ [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/ |
D | FasterStrsplitDelimiterCheck.cpp | 24 llvm::Optional<std::string> makeCharacterLiteral(const StringLiteral *Literal, in makeCharacterLiteral() argument 26 assert(Literal->getLength() == 1 && in makeCharacterLiteral() 28 assert(Literal->getCharByteWidth() == 1 && in makeCharacterLiteral() 30 std::string Result = clang::tooling::fixit::getText(*Literal, Context).str(); in makeCharacterLiteral() 103 const auto *Literal = Result.Nodes.getNodeAs<StringLiteral>("Literal"); in check() local 105 if (Literal->getBeginLoc().isMacroID() || Literal->getEndLoc().isMacroID()) in check() 109 makeCharacterLiteral(Literal, *Result.Context); in check() 112 SourceRange Range = Literal->getSourceRange(); in check() 118 Literal->getBeginLoc(), in check()
|
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/ |
D | p4.cpp | 16 struct Literal { struct 17 constexpr Literal() {} in Literal() function 18 explicit Literal(int); // expected-note 2 {{here}} 31 constexpr S(Literal) = delete; argument 194 Literal l; 195 Literal m; 196 Literal n[3]; 206 Literal l; 222 struct ConstexprBaseMemberCtors : Literal { 223 Literal l; [all …]
|
/external/llvm-project/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/ |
D | p4.cpp | 17 struct Literal { struct 18 constexpr Literal() {} in Literal() argument 19 explicit Literal(int); // expected-note 2 {{here}} 32 constexpr S(Literal) = delete; argument 217 Literal l; 218 Literal m; 219 Literal n[3]; 229 Literal l; 245 struct ConstexprBaseMemberCtors : Literal { 246 Literal l; [all …]
|