- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 129 for created (8.53 sec)
-
tensorflow/compiler/jit/partially_decluster_pass.cc
// the cluster. // // Declustering f will increase the number of compilations only if f is a // one-to-many "function" i.e. isn't a function at all. RNG is one possible // example, depending on how we look at it. But we never create clusters where // such f's would be marked as must-be-constant. // // We assume here that the extra repeated (repeated compared to a clustered f // where it will always be constant folded) host-side computation of f does not
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Feb 09 11:36:41 UTC 2024 - 15.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/promote_resources_to_args.cc
} // Rewrite return if there are variable writes. const int return_operands_size = return_operands.size(); if (return_operands_size > num_results_before) { builder.create<func::ReturnOp>(return_op.getLoc(), return_operands); return_op.erase(); } // Update function argument and result types with new resource subtypes.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc
Value value = effect.getValue(); found_any_effect = true; // We only collect value-based side effects here for which we can use // resource alias analysis. Other side effects are treated as op-based // side effects. if (!ShouldUseResourceAliasAnalysis(effect)) continue; if (value) processed_values.insert(value); TypeID type_id = effect.getResource()->getResourceID();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 41.2K bytes - Viewed (0) -
tensorflow/cc/framework/scope.cc
} CompositeOpScopes Scope::GetCompositeOpScopes( const string& composite_op_name) const { if (impl()->op_name_.empty() && composite_op_name.empty()) { UpdateStatus(errors::InvalidArgument( "Cannot create composite op scopes with empty name")); return {*this, *this}; } if (!impl()->single_use_scope()) { Scope child = NewSubScope(impl()->op_name_.empty() ? composite_op_name
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 05:57:22 UTC 2024 - 20.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc
if (can_eliminate(result)) continue; new_result_types.push_back(result.getType()); } // Rebuild the new operation with lesser number of results. OpBuilder builder(op); Operation *new_op = Operation::create( op->getLoc(), op->getName(), new_result_types, op->getOperands(), op->getAttrs(), op->getPropertiesStorage(), op->getSuccessors(), op->getNumRegions()); builder.insert(new_op);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tf_tfl_passes.cc
#include "tensorflow/compiler/mlir/tensorflow/transforms/passes.h" #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_passes.h" #include "xla/mlir_hlo/mhlo/transforms/passes.h" namespace mlir { /// Create a pass to convert from the TFExecutor to the TF control dialect. std::unique_ptr<OperationPass<func::FuncOp>> CreateTFExecutorToControlDialectConversion(); } // namespace mlir namespace tensorflow { namespace {
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/tensorflow/ir/tf_executor.cc
if (!wrapped_op) return failure(); OpBuilder builder(parser.getBuilder().getContext()); builder.setInsertionPointToEnd(&block); builder.create<YieldOp>(wrapped_op->getLoc(), wrapped_op->getResults()); result.location = wrapped_op->getLoc(); } else if (parser.parseRegion(body)) { return failure(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 42.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc
if (elem_type && elem_type.hasStaticShape()) return elem_type; } } return std::nullopt; } // Creates a ReadVariableOp on a local variable. Value ReadLocalVariable(Value local_var, OpBuilder builder, Location loc) { return builder .create<TF::ReadVariableOp>( loc, ArrayRef<Type>{mlir::cast<TF::ResourceType>(
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/jit/xla_launch_util_test.cc
EXPECT_TRUE(xla::LiteralTestUtil::Equal( *literal1, xla::LiteralUtil::CreateR2<int32_t>({{1, 2, 3}}))); std::shared_ptr<xla::Literal> literal2 = *exec_args[1]->ToLiteralSync(); EXPECT_TRUE(xla::LiteralTestUtil::Equal( *literal2, xla::LiteralUtil::CreateR2<int32_t>({{4, 5, 6}}))); } TEST_F(PjRtExecutionUtilTest, PreparePjRtExecutableArgumentsVariableInputs) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 21 09:53:30 UTC 2024 - 28.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/preprocess_op.cc
auto new_shape_const = rewriter.create<arith::ConstantOp>( weight_op->getLoc(), shape_spec_type, new_shape_const_attr); auto reshape_op = rewriter.create<TF::ReshapeOp>( weight_op->getLoc(), new_shape, weight_op->getResult(0), new_shape_const); op->setOperand(weight_operand_idx, reshape_op); // Create a new function with preprocessed types.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.4K bytes - Viewed (0)