- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 287 for value_or (0.24 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/reduce.cc
if (is_float) { mhlo::OrOp value_or = llvm::dyn_cast_or_null<mhlo::OrOp>( value_select.getOperand(0).getDefiningOp()); if (!value_or) return failure(); mhlo::CompareOp value_gt = llvm::dyn_cast_or_null<mhlo::CompareOp>( value_or.getLhs().getDefiningOp()); if (!value_gt || value_gt.getComparisonDirection() != compare_direction || value_gt.getLhs() != body.getArgument(0) ||
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 20:53:17 UTC 2024 - 8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/convert_tensor_test.cc
mlir::Builder b(expected_ty.getContext()); Tensor tensor(dtype, TensorShape({static_cast<int64_t>(values.size())})); tensor.flat<T>().setValues(values); auto value_or = ConvertTensor(tensor, &b); TF_ASSERT_OK(value_or.status()); auto attr = value_or.value(); EXPECT_EQ(attr.getShapedType().getElementType(), expected_ty); Tensor out; TF_ASSERT_OK(ConvertToTensor(attr, &out));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.4K bytes - Viewed (0) -
tensorflow/cc/saved_model/reader.cc
io::JoinPath(export_dir, kSavedModelFilenamePbTxt); auto saved_model_pbtxt_exists = internal::FileExists(Env::Default(), saved_model_pbtxt_path); if (saved_model_pbtxt_exists.value_or(false)) { Status result = ReadTextProto(Env::Default(), saved_model_pbtxt_path, saved_model_proto); if (result.ok()) { metrics::SavedModelReadCount(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 00:19:29 UTC 2024 - 6.1K bytes - Viewed (0) -
tensorflow/cc/saved_model/metrics_test.cc
SavedModelWritePathAndSingleprint().Set("bar"); EXPECT_EQ(SavedModelWritePathAndSingleprint().value(), "bar"); EXPECT_EQ( MakeSavedModelPathAndSingleprint("path", "singleprint").value_or(""), "path:singleprint"); } TEST(MetricsTest, TestInvalidMakePathAndSingleprint) { EXPECT_THAT(MakeSavedModelPathAndSingleprint("", "singleprint"),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 18 23:43:59 UTC 2024 - 7.6K bytes - Viewed (0) -
tensorflow/cc/saved_model/image_format/internal_api.cc
const std::string saved_model_pbtxt_path = absl::StrCat(file_prefix, ".pbtxt"); auto saved_model_pbtxt_exists = internal::FileExists(Env::Default(), saved_model_pbtxt_path); if (saved_model_pbtxt_exists.value_or(false)) { absl::Status result = ReadTextProto(Env::Default(), saved_model_pbtxt_path, saved_model_proto); if (result.ok()) { metrics::SavedModelReadCount(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 30 21:50:27 UTC 2023 - 5.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc
converted_attrs.push_back(attr); } else if (attr.getName() == op.getPaddingAttrName()) { auto value_or = ConvertPaddingAttr(op, dnums, rewriter); if (failed(value_or)) { return failure(); } attr.setValue(*value_or); converted_attrs.push_back(attr); } else if (attr.getName() == op.getWindowStridesAttrName() ||
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 30.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tf_tfl_passes.cc
quant_specs.default_ranges.second.has_value()) { pass_manager.addNestedPass<mlir::func::FuncOp>( mlir::TFL::CreateDefaultQuantParamsPass( quant_specs.default_ranges.first.value_or(0.0), quant_specs.default_ranges.second.value_or(0.0), quant_specs.IsSignedInferenceType())); } pass_manager.addNestedPass<mlir::func::FuncOp>( mlir::TFL::CreateQuantizePass(quant_specs));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 18:45:51 UTC 2024 - 25.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf.cc
auto op_name = op->getName(); auto action = target.getOpAction(op_name); if (!action.has_value()) { return "Unknown"; } switch (action.value_or(ConversionTarget::LegalizationAction::Legal)) { case ConversionTarget::LegalizationAction::Legal: return "Legal"; case ConversionTarget::LegalizationAction::Dynamic: return "Dynamic";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 10.2K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_tpu_device.cc
: nullptr; se::Stream* const dst_device_to_device_stream = should_use_substream ? device_to_device_master_stream->GetOrCreateSubStream().value_or( nullptr) : dst_xla_context->GetDeviceToDeviceStream(); TF_RET_CHECK(dst_device_to_device_stream != nullptr); auto return_substream = gtl::MakeCleanup(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 22:53:47 UTC 2024 - 20.9K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_launch_util.cc
std::make_unique<xla::PjRtStreamExecutorBuffer>( device_shape, std::move(device_buffer), pjrt_client, pjrt_device, pjrt_device->default_memory_space().value_or(nullptr)); owned_args->push_back(std::move(pjrt_buffer)); args->push_back(owned_args->back().get()); } } else { if (av_tensor->GetBuffer() == nullptr) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 00:36:08 UTC 2024 - 40.4K bytes - Viewed (0)