Home
last modified time | relevance | path

Searched refs:Literal (Results 1 – 25 of 321) sorted by relevance

12345678910>>...13

/external/tensorflow/tensorflow/compiler/xla/tests/
Dscatter_test.cc30 void RunTest(const string& hlo_text, Literal* operand, in RunTest()
31 Literal* scatter_indices, Literal* updates) { in RunTest()
35 void RunTest(const string& hlo_text, absl::Span<Literal* const> args) { in RunTest()
65 Literal operand = in XLA_TEST_F()
67 Literal scatter_indices = LiteralUtil::CreateR1<int32>({0, 2}); in XLA_TEST_F()
68 Literal updates = LiteralUtil::CreateR2<int32>({{10, 20, 30}, {70, 80, 90}}); in XLA_TEST_F()
96 Literal operand = in XLA_TEST_F()
98 Literal scatter_indices = LiteralUtil::CreateR1<int32>({0, 1}); in XLA_TEST_F()
99 Literal updates = LiteralUtil::CreateR2<int32>({{10, 20, 30}, {70, 80, 90}}); in XLA_TEST_F()
124 Literal operand = in XLA_TEST_F()
[all …]
Dgather_operation_test.cc32 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()
82 Literal operand = in XLA_TEST_F()
84 Literal start_indices = LiteralUtil::CreateR1<int32>({0, 2}); in XLA_TEST_F()
103 Literal operand = in XLA_TEST_F()
105 Literal start_indices = LiteralUtil::CreateR2<int32>({{0, 2}, {2, 1}}); in XLA_TEST_F()
124 Literal operand = in XLA_TEST_F()
[all …]
Dtransfer_manager_test.cc72 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()
106 Literal literal = LiteralUtil::CreateR1<float>(test_vector); in XLA_TEST_F()
114 Literal result, in XLA_TEST_F()
122 Literal literal = LiteralUtil::CreateR1U8(test_string); in XLA_TEST_F()
130 Literal result, in XLA_TEST_F()
137 Literal literal = in XLA_TEST_F()
146 Literal result, in XLA_TEST_F()
[all …]
Dclient_library_test_base.h98 StatusOr<Literal> ExecuteAndTransfer(
102 StatusOr<Literal> ExecuteAndTransfer(
110 StatusOr<Literal> ExecuteAndTransferReference(
183 void ComputeAndCompareLiteral(XlaBuilder* builder, const Literal& expected,
186 void ComputeAndCompareLiteral(XlaBuilder* builder, const Literal& expected,
194 StatusOr<Literal> ComputeAndTransfer(
200 XlaBuilder* builder, const Literal& expected,
204 XlaBuilder* builder, const Literal& expected,
215 void ComputeAndCompareTuple(XlaBuilder* builder, const Literal& expected,
217 void ComputeAndCompareTuple(XlaBuilder* builder, const Literal& expected,
[all …]
Dclient_library_test_base.cc112 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 …]
Dtest_utils.cc33 void PopulateWithRandomFloatingPointData(Literal* literal, in PopulateWithRandomFloatingPointData()
42 void PopulateWithIntNext(Literal* literal);
45 void PopulateWithIntNext<half>(Literal* literal) { in PopulateWithIntNext()
58 void PopulateWithIntNext<bfloat16>(Literal* literal) { in PopulateWithIntNext()
72 void PopulateWithNextAfter(Literal* literal) { in PopulateWithNextAfter()
86 void PopulateWithNoDuplicateData(Literal* literal, std::minstd_rand0* engine) { in PopulateWithNoDuplicateData()
96 void PopulateWithNoDuplicateData(Literal* literal, std::minstd_rand0* engine) { in PopulateWithNoDuplicateData()
103 void PopulateWithFloatingPointData(Literal* literal, std::minstd_rand0* engine, in PopulateWithFloatingPointData()
116 void PopulateWithComplexData(Literal* result, std::minstd_rand0* engine, in PopulateWithComplexData()
124 Literal real_lit(floating_point_shape); in PopulateWithComplexData()
[all …]
Dhlo_test_base.cc190 StatusOr<Literal> HloTestBase::Execute(std::unique_ptr<HloModule> module, in Execute()
191 absl::Span<Literal* const> arguments) { in Execute()
195 Literal HloTestBase::ExecuteNoHloPasses(std::unique_ptr<HloModule> module, in ExecuteNoHloPasses()
196 absl::Span<Literal* const> arguments) { in ExecuteNoHloPasses()
203 Literal HloTestBase::ExecuteAndTransfer(std::unique_ptr<HloModule> module, in ExecuteAndTransfer()
204 absl::Span<Literal* const> arguments) { in ExecuteAndTransfer()
208 StatusOr<std::vector<Literal>> HloTestBase::ExecuteReplicated( in ExecuteReplicated()
209 std::unique_ptr<HloModule> module, absl::Span<Literal* const> arguments, in ExecuteReplicated()
220 StatusOr<std::vector<Literal>> HloTestBase::ExecuteReplicated( in ExecuteReplicated()
221 std::unique_ptr<HloModule> module, absl::Span<Literal* const> arguments, in ExecuteReplicated()
[all …]
Dparams_test.cc45 Literal param0_literal = LiteralUtil::CreateR0<float>(3.14159f); in XLA_TEST_F()
57 Literal param0_literal = LiteralUtil::CreateR1<float>({}); in XLA_TEST_F()
69 Literal param0_literal = LiteralUtil::CreateR1<float>({3.14f, -100.25f}); in XLA_TEST_F()
82 Literal param0_literal = LiteralUtil::CreateR1U8(str); in XLA_TEST_F()
95 Literal param0_literal = in XLA_TEST_F()
108 Literal param0_literal = LiteralUtil::CreateR2<float>( in XLA_TEST_F()
124 Literal literal0 = LiteralUtil::CreateR1<float>({1, 2}); in XLA_TEST_F()
129 Literal literal1 = LiteralUtil::CreateR1<float>({10, 20}); in XLA_TEST_F()
155 Literal literal = LiteralUtil::CreateR0<float>(3.14159f); in XLA_TEST_F()
169 Literal literal0 = LiteralUtil::CreateR1<float>({1, 2}); in XLA_TEST_F()
[all …]
Dhlo_test_base.h165 StatusOr<Literal> Execute(std::unique_ptr<HloModule> module,
166 absl::Span<Literal* const> arguments);
170 Literal ExecuteNoHloPasses(std::unique_ptr<HloModule> module,
171 absl::Span<Literal* const> arguments);
173 Literal ExecuteAndTransfer(std::unique_ptr<HloModule> module,
174 absl::Span<Literal* const> arguments);
181 StatusOr<std::vector<Literal>> ExecuteReplicated(
182 std::unique_ptr<HloModule> module, absl::Span<Literal* const> arguments,
186 StatusOr<std::vector<Literal>> ExecuteReplicated(
187 std::unique_ptr<HloModule> module, absl::Span<Literal* const> arguments,
[all …]
Dcustom_call_test.cc92 Literal result = ExecuteAndTransfer(std::move(module), {}); in XLA_TEST_F()
113 Literal result = ExecuteAndTransfer(std::move(module), {}); in XLA_TEST_F()
136 Literal result = ExecuteAndTransfer(std::move(module), {}); in XLA_TEST_F()
154 Literal argument = LiteralUtil::CreateR2<float>({{1.f, 2.f}, {3.f, 4.f}}); in XLA_TEST_F()
159 Literal result = ExecuteAndTransfer(std::move(module), {&argument}); in XLA_TEST_F()
184 Literal argument = LiteralUtil::CreateR2<float>({{1.f, 2.f}, {3.f, 4.f}}); in XLA_TEST_F()
186 Literal result = ExecuteAndTransfer(std::move(module), {&argument}); in XLA_TEST_F()
202 Literal arg0 = LiteralUtil::CreateR0<float>(7.f); in XLA_TEST_F()
203 Literal arg1 = LiteralUtil::CreateR0<float>(42.f); in XLA_TEST_F()
205 Literal expected = LiteralUtil::MakeTuple({&arg1, &arg0}); in XLA_TEST_F()
[all …]
Dmap_test.cc172 Literal param0_literal = LiteralUtil::CreateR0<float>(42.0); in TEST_F()
186 Literal param0_literal = LiteralUtil::CreateR1<float>({}); in XLA_TEST_F()
200 Literal param0_literal = in TEST_F()
214 Literal param0_literal = in TEST_F()
227 Literal param0_literal = in TEST_F()
241 Literal param0_literal = in TEST_F()
258 Literal param0_literal = LiteralUtil::CreateR1<float>({}); in XLA_TEST_F()
274 Literal param0_literal = in TEST_F()
290 Literal param0_literal = LiteralUtil::CreateR2<float>( in TEST_F()
345 Literal param0_literal = in TEST_F()
[all …]
Dtest_utils_test.cc91 TF_ASSERT_OK_AND_ASSIGN(std::vector<Literal> args, in XLA_TEST_F()
122 TF_ASSERT_OK_AND_ASSIGN(std::vector<Literal> args, in XLA_TEST_F()
156 TF_ASSERT_OK_AND_ASSIGN(std::vector<Literal> args, in XLA_TEST_F()
159 const Literal& key_arg = args[0]; in XLA_TEST_F()
187 TF_ASSERT_OK_AND_ASSIGN(std::vector<Literal> args, in XLA_TEST_F()
190 const Literal& key_arg = args[0]; in XLA_TEST_F()
218 TF_ASSERT_OK_AND_ASSIGN(std::vector<Literal> args, in XLA_TEST_F()
221 const Literal& key_arg = args[0]; in XLA_TEST_F()
247 TF_ASSERT_OK_AND_ASSIGN(std::vector<Literal> args, in XLA_TEST_F()
276 TF_ASSERT_OK_AND_ASSIGN(std::vector<Literal> args, in XLA_TEST_F()
[all …]
/external/tensorflow/tensorflow/compiler/xla/
Dliteral_util.h60 static Literal GetFirstScalarLiteral(const LiteralSlice& literal);
72 static Literal CreateR0(NativeT value);
74 static Literal CreateR1(absl::Span<const NativeT> values);
75 static Literal CreateR1(const tensorflow::core::Bitmap& values);
77 static Literal CreateR2(
80 static Literal CreateR2WithLayout(
84 static Literal CreateR3(std::initializer_list<
88 static Literal CreateR3WithLayout(
94 static Literal CreateR4(
99 static Literal CreateR4WithLayout(
[all …]
Dliteral_util.cc47 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::ConvertF32ToBF16( in ConvertF32ToBF16()
101 /* static */ Literal LiteralUtil::CreateToken() { in CreateToken()
102 return Literal(ShapeUtil::MakeTokenShape()); in CreateToken()
105 /* static */ Literal LiteralUtil::Zero(PrimitiveType primitive_type) { in Zero()
146 /* static */ Literal LiteralUtil::One(PrimitiveType primitive_type) { in One()
[all …]
Dliteral_test.cc95 Literal literal_r4_2x2x3x3_dim0major_;
96 Literal literal_r4_2x2x3x3_dim0minor_;
282 TF_ASSERT_OK_AND_ASSIGN(Literal literal_from_proto, in TEST_F()
283 Literal::CreateFromProto(literal.ToProto())); in TEST_F()
394 Literal nil(ShapeUtil::MakeNil()); in TEST_F()
423 Literal colmajor(ShapeUtil::MakeShapeWithLayout(F32, {2, 2}, {0, 1})); in TEST_F()
429 Literal rowmajor(ShapeUtil::MakeShapeWithLayout(F32, {2, 2}, {1, 0})); in TEST_F()
506 auto x = Literal::CreateFromShape(tuple.shape()); in TEST_F()
837 Literal output(ShapeUtil::MakeShape(S64, {1})); in TEST_F()
844 Literal output(ShapeUtil::MakeShape(U64, {2})); in TEST_F()
[all …]
Dliteral.h54 class Literal; variable
235 StatusOr<Literal> ConvertToShape(const Shape& dest_shape) const;
241 StatusOr<Literal> BitcastConvert(PrimitiveType primitive_dest_type) const;
245 StatusOr<Literal> Convert(PrimitiveType primitive_dest_type) const;
248 Literal Clone() const;
266 Literal Relayout(const Layout& new_layout,
271 Literal Relayout(const Shape& shape_with_layout) const;
277 StatusOr<Literal> Reshape(absl::Span<const int64> dimensions) const;
281 StatusOr<Literal> Broadcast(const Shape& result_shape,
291 Literal Transpose(absl::Span<const int64> permutation) const;
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_evaluator.h58 StatusOr<Literal> Evaluate(const HloModule& module, in Evaluate()
59 absl::Span<const Literal* const> arg_literals) { in Evaluate()
63 StatusOr<Literal> Evaluate(const HloModule& module, in Evaluate()
64 absl::Span<const Literal> arg_literals) { in Evaluate()
87 StatusOr<Literal> Evaluate(const HloComputation& computation,
88 absl::Span<const Literal* const> arg_literals);
90 StatusOr<Literal> Evaluate(const HloComputation& computation, in Evaluate()
91 absl::Span<const Literal> arg_literals) { in Evaluate()
92 std::vector<const Literal*> arg_literal_ptrs; in Evaluate()
102 StatusOr<Literal> Evaluate(HloInstruction* instruction);
[all …]
Dhlo_runner.h54 std::vector<const Literal*> arguments;
58 const Literal* infeed = nullptr;
75 std::vector<Literal>* outfeed_values = nullptr;
105 StatusOr<ScopedShapedBuffer> TransferLiteralToDevice(const Literal& literal);
107 const absl::Span<const Literal* const> literals);
109 const absl::Span<const Literal> literals);
110 StatusOr<Literal> TransferLiteralFromDevice(const ShapedBuffer& buffer);
117 StatusOr<Literal> Execute(std::unique_ptr<HloModule> module,
118 const absl::Span<const Literal* const> arguments,
122 StatusOr<Literal> Execute(std::unique_ptr<HloModule> module,
[all …]
Dhlo_evaluator_test.cc61 StatusOr<Literal> Evaluate( in Evaluate()
62 absl::Span<const Literal* const> arg_literals = {}) { in Evaluate()
72 Literal EvaluateWithModule( in EvaluateWithModule()
73 HloModule* module, absl::Span<const Literal* const> arg_literals = {}) { in EvaluateWithModule()
81 void TestUnaryOp(HloOpcode opcode, Literal expected, Literal input, in TestUnaryOp()
89 TF_ASSERT_OK_AND_ASSIGN(Literal result, Evaluate()); in TestUnaryOp()
100 void TestBinaryOp(HloOpcode opcode, Literal expected, Literal lhs, in TestBinaryOp()
101 Literal rhs) { in TestBinaryOp()
109 TF_ASSERT_OK_AND_ASSIGN(Literal result, Evaluate()); in TestBinaryOp()
114 void TestTernaryOp(HloOpcode opcode, Literal expected, Literal src0, in TestTernaryOp()
[all …]
Dhlo_evaluator.cc59 StatusOr<Literal> Compare(const Shape& shape, ComparisonDirection direction, in Compare()
95 Literal result(shape); in Compare()
106 StatusOr<Literal> Compare<complex64>(const Shape& shape, in Compare()
127 Literal result(shape); in Compare()
138 StatusOr<Literal> Compare<complex128>(const Shape& shape, in Compare()
159 Literal result(shape); in Compare()
230 StatusOr<Literal> HloEvaluator::Evaluate( in Evaluate()
232 absl::Span<const Literal* const> arg_literals) { in Evaluate()
277 StatusOr<Literal> HloEvaluator::Evaluate(HloInstruction* instruction) { in Evaluate()
296 bool HloEvaluator::TryEvaluate(HloInstruction* instruction, Literal* result) { in TryEvaluate()
[all …]
Dhlo_runner.cc98 const Literal& literal) { in TransferLiteralToDevice()
111 const absl::Span<const Literal* const> literals) { in TransferLiteralsToDevice()
113 for (const Literal* literal : literals) { in TransferLiteralsToDevice()
123 const absl::Span<const Literal> literals) { in TransferLiteralsToDevice()
124 std::vector<const Literal*> literal_pointers; in TransferLiteralsToDevice()
132 StatusOr<Literal> HloRunner::TransferLiteralFromDevice( in TransferLiteralFromDevice()
140 StatusOr<Literal> HloRunner::Execute( in Execute()
142 const absl::Span<const Literal* const> arguments, bool run_hlo_passes, in Execute()
155 StatusOr<Literal> HloRunner::Execute(std::unique_ptr<HloModule> module, in Execute()
156 const absl::Span<const Literal> arguments, in Execute()
[all …]
/external/python/setuptools/docs/_theme/nature/static/
Dpygments.css22 .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/python/httplib2/doc/html/_static/
Dpygments.css26 .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/libnl/doc/stylesheets/
Dpygments.css30 .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/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
Dp4.cpp16 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 …]

12345678910>>...13