- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 646 for Auto (0.08 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc
for (auto& input : inputs) { auto input_op = input.get().getDefiningOp(); if (!input_op || !IsSupportedHostInputOp(input_op)) return false; } for (auto entry : llvm::enumerate(inputs)) { Value input = entry.value().get(); auto ranked_type = mlir::dyn_cast<RankedTensorType>(input.getType()); if (!ranked_type) return false; auto input_shape = ranked_type.getShape();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 29.3K bytes - Viewed (0) -
tensorflow/cc/framework/gradients_test.cc
// Construct forward graph. auto a = Const(scope, 1, {4, 2}); auto b = Const(scope, 2, {4, 2}); auto c = Const(scope, 3, {4, 2}); auto pack = Stack(scope, {a, b, c}); auto unpack = Unstack(scope, pack.output, 3); TF_ASSERT_OK(scope.status()); // Construct grad inputs. auto dx = Const(scope, 4, {4, 2}); auto dy = Const(scope, 5, {4, 2});
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 15 15:13:38 UTC 2023 - 25K bytes - Viewed (0) -
tensorflow/cc/gradients/nn_grad_test.cc
TensorShape scale_shape({shape.dim_size(channel_dim)}); auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(shape)); auto scale = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(scale_shape)); auto offset = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(scale_shape)); auto mean = ops::ZerosLike(scope_, scale); auto var = ops::OnesLike(scope_, scale); if (!channel_first) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 22 20:45:22 UTC 2022 - 15K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc
return rewriter.notifyMatchFailure(op, "zero_points must be constant"); } auto original_element_type = getElementTypeOrSelf(original_type); if (!mlir::isa<TF::Qint8Type, TF::Qint32Type>(original_element_type)) { return rewriter.notifyMatchFailure( op, "Quantized type must be qint8 or qint32."); } auto storage_type = GetIntTypeFromTFQint(original_element_type);
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/tensorflow/transforms/breakup-islands.cc
llvm::SmallPtrSet<Operation*, 4> defining_ops; llvm::SmallVector<Type, 4> types; for (auto& item : llvm::make_early_inc_range(llvm::reverse(graph_op.GetBody()))) { auto it = new_control_inputs.find(&item); if (it == new_control_inputs.end()) continue; auto& new_control_inputs_for_item = it->second; builder.setInsertionPoint(&item);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Aug 11 20:52:36 UTC 2023 - 16.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc
// has the property that if there is an edge from SCC1->SCC2, SCC1 is visited // after SCC2, i.e., the graph is traversed bottom up just the way we want. auto scc_begin = llvm::scc_begin(&call_graph); auto scc_end = llvm::scc_end(&call_graph); for (auto& scc : make_range(scc_begin, scc_end)) { // Each SCC node is a collection of callgraph nodes that form a cycle. We
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 28.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/raise_target_subgraphs.cc
void RaiseTargetSubgraphsPass::runOnOperation() { ModuleOp module = getOperation(); auto& side_effect_analysis = getAnalysis<TF::SideEffectAnalysis>(); SmallVector<func::FuncOp> funcs(module.getOps<func::FuncOp>()); int func_count = -1; for (auto func : funcs) { const auto& info = side_effect_analysis.GetAnalysisForFunc(func); for (auto& block : func) { OpBuilder builder = OpBuilder::atBlockBegin(&block);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.cc
// maximal sharding then only the specified logical device take the value as // the input. for (const auto& sharding_attr_and_index : llvm::enumerate(sharding_attrs)) { const auto& sharding_attr = sharding_attr_and_index.value(); const auto input_index = sharding_attr_and_index.index(); const auto& input_value = cluster_func_inputs[input_index]; xla::OpSharding sharding; if (DecodeShardingAttribute(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 22 21:28:13 UTC 2024 - 34K bytes - Viewed (0) -
tensorflow/c/experimental/next_pluggable_device/c_api.cc
void (*delete_func)(void*), TF_Status* status) { auto* cc_ctx = reinterpret_cast<tensorflow::OpKernelContext*>(ctx); auto* resource_mgr = cc_ctx->resource_manager(); tensorflow::core::RefCountPtr<tensorflow::PluginResource> tf_plugin_resource_ptr; tensorflow::PluginResource* tf_plugin_resource = nullptr; auto cc_status = resource_mgr->LookupOrCreate<tensorflow::PluginResource>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 05:48:24 UTC 2024 - 13.9K bytes - Viewed (0) -
tensorflow/cc/gradients/array_grad.cc
std::vector<Output>* grad_outputs) { auto x = op.input(0); auto a = op.input(1); // [Rank(x), 2] // Takes a slice of a. The 1st column. [Rank(x), 1]. auto size = Stack(scope, {Rank(scope, x), 1}); auto pad_before = Slice(scope, a, {0, 0}, size); // Make it a 1-D tensor. auto begin = Reshape(scope, pad_before, {-1});
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 10 23:33:32 UTC 2023 - 31.7K bytes - Viewed (0)