- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for init_values (0.14 sec)
-
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
const auto &init_values_ty = op.getInitValues().getType(); int n_init_values = init_values_ty.size(); if (n_init_values != n_inputs) { return op.emitOpError() << "Number of inputs (" << n_inputs << ") is different than number of init_values (" << n_init_values << ")"; } auto input_ty_0 = inputs_ty[0].cast<ShapedType>();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
public: using ConvertReduceOpToTfOp::ConvertReduceOpToTfOp; LogicalResult MatchInitValue(Value init_value) const override { auto type = mlir::cast<ShapedType>(init_value.getType()).getElementType(); if (mlir::isa<FloatType>(type)) { float const_value; if (failed(GetConstantSplatValue<float>(init_value, const_value)) || const_value != 1.0) return failure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0) -
tensorflow/c/c_api.cc
} session->graph->mu.unlock(); status->status = session->session->Extend(std::move(graph_def)); if (!status->status.ok()) { // Contract is we always delete input_values[i]. return false; } // Note: session->session is not modified if Extend() fails, so // we only set last_num_graph_nodes if it succeeds. session->last_num_graph_nodes = num_nodes;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 03:35:10 UTC 2024 - 102.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize.cc
} OpBuilder builder(attr.getContext()); const auto dense_int_attr = mlir::dyn_cast<DenseIntElementsAttr>(attr); const auto int_values = dense_int_attr.getValues<APInt>(); float float_val = 0.0f; if (!int_values.empty()) { const APInt apint_val = *int_values.begin(); if (dense_int_attr.getType().getElementType().isSignedInteger()) { // Get the sign-extended value (=>int64) if the type is signed.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 102.3K bytes - Viewed (0)