- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 123 for getBlob (0.13 sec)
-
tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc
auto launch = builder->create<mlir::tf_device::LaunchOp>( op->getLoc(), builder->getStringAttr(host_device), launch_result_types); launch.getBody().push_back(launch_block); builder->setInsertionPointToEnd(&launch.GetBody()); builder->create<mlir::tf_device::ReturnOp>(op->getLoc(), launch_results); return launch; } // Checks if an operation is a supported TPU embedding op.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/convert_control_to_data_outputs.cc
auto island = builder.create<IslandOp>( sub_op->getLoc(), sub_op->getResultTypes(), control_type, control_inputs); island.getBody().push_back(new Block); Block* block = &island.getBody().back(); builder.setInsertionPointToEnd(block); sub_op->replaceAllUsesWith(island.getOutputs()); sub_op->moveBefore(block, block->begin()); builder.create<YieldOp>(sub_op->getLoc(), sub_op->getResults()); return island; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 28.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/dense_to_sparse.cc
builder.create<SparseQConstOp>(op->getLoc(), cst.getQtypeAttr(), cst.getValue(), s_param, new_value); value.replaceAllUsesWith(s_qconst.getResult()); cst.erase(); } if (result.needs_densify) { auto value = op->getOperand(operand); auto densify = builder.create<DensifyOp>(op->getLoc(), value.getType(), value);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc
for (int64_t dim : element_shape) { buffer_shape.push_back(dim); } auto zero = CreateScalarConst(0, builder, op->getLoc()); if (getElementTypeOrSelf(zero.getType()) != element_dtype) { zero = builder.create<TF::CastOp>( op->getLoc(), ArrayRef<Type>{tensorflow::GetTypeFromTFTensorShape({}, element_dtype)}, ArrayRef<Value>{zero}); } auto buffer_type =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tensorlist.cc
// It is currently not possible to easily pack the output of a multi-result // op into an op with a single varidic output in `.td`. auto converted = rewriter.create<TFL::CustomOp>( op->getLoc(), op->getResultTypes(), op->getOperands(), "TensorListPopBack", TFL::ConstBytesAttr::get(getContext(), "")); rewriter.replaceOp(op, converted.getResults()); return success(); } };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 23:04:40 UTC 2024 - 10.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.td
"$_builder.create<TF::ShapeOp>($0.getLoc(), $1, $2)">; def IsI32 : NativeCodeCall< "$_builder.getBoolAttr(getElementTypeOrSelf($0.getType()).isInteger(32))">; def CreateTFCastOpF32 : NativeCodeCall< "CreateTFCastOpF32(&$_builder, $0.getLoc(), $1, $2)">; def CreateTFCastOpI32 : NativeCodeCall< "CreateTFCastOpI32(&$_builder, $0.getLoc(), $1, $2)">; def CreateTensorScatterNdOp : NativeCodeCall<
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 04 13:30:42 UTC 2024 - 24.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc
op.getLoc(), &rewriter); } else if (out_reshape_need) { out = createOutputReshapeOpForDynamic(out, reshape_shape, original_lhs, original_rhs, original_dnums, op.getLoc(), &rewriter); } out = createTransposeOp(out, op.getLoc(), out_transpose, &rewriter); rewriter.replaceOp(op, out);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 33.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc
for (const auto& arg : func_op.getArguments()) { arg_locs.push_back(arg.getLoc()); } } // Creates a new main function. auto func_type = FunctionType::get(context, arg_types, result_types); auto main_func = builder.create<func::FuncOp>( module_op.getLoc(), kImportModelDefaultGraphFuncName, func_type); builder.createBlock(&main_func.getBody(), main_func.begin(), arg_types,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_async.cc
operand.getDefiningOp<corert::ConstDenseTensorOp>()) { new_values.push_back( rewriter.create<fallback_async::ConstDenseTensorOp>( op.getLoc(), rewriter.getType<fallback::TFTensorType>(), corert_const_dense_tensor_op.getValue())); should_rewrite = true; continue; } if (auto corert_const_string_tensor_op =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 08 01:19:25 UTC 2023 - 15.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/executor_island_coarsening.cc
} } auto island = OpBuilder(fetch).create<IslandOp>( fetch.getLoc(), data_types, /*control=*/ControlType::get(fetch.getContext()), /*controlInputs=*/control_fetches); island.getBody().push_back(new Block); OpBuilder::atBlockEnd(&island.GetBody()) .create<YieldOp>(fetch.getLoc(), data_fetches); const int fetch_control_idx = data_fetches.size();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.7K bytes - Viewed (0)