- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 101 for getAttrOfType (0.32 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc
func::FuncOp GetEntryFuncOp(TF::XlaCallModuleOp xla_call_module_op, const SymbolTable symbol_table) { const auto entry_function_symbol_ref = xla_call_module_op->getAttrOfType<FlatSymbolRefAttr>(kEntryFuncAttrName); return dyn_cast_or_null<func::FuncOp>( symbol_table.lookup(entry_function_symbol_ref.getValue())); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 06:04:36 UTC 2024 - 41.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc
llvm::dyn_cast<tf_device::LaunchOp>(preprocess_op->getParentOp()); // Device of original launch looked up before moving the preprocessing ops // around. StringAttr device = original_launch_op->getAttrOfType<StringAttr>(kDeviceAttr); if (!device) { return original_launch_op->emitOpError() << "Launch op has an invalid device attribute."; } // Find the TPUCompile successor.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/promote_resources_to_args.cc
<< "]"; return success(); } bool VariableIsInitialized(TF::VarHandleOp var_handle_op) { auto is_variable_initialized = var_handle_op->getAttrOfType<BoolAttr>("_is_initialized"); // Assume variable is initialized if attribute is not set. // There are paths that doesn't mark the variables. All variables // that doesn't have the attribute will be promoted.
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/tf2xla/api/v1/compile_mlir_util.cc
// The StringRef cast is necessary before cxx14. mlir::IntegerAttr group_key_attr = module_op->getAttrOfType<mlir::IntegerAttr>( mlir::StringRef(kGroupKeyAttrName.data(), kGroupKeyAttrName.size())); mlir::IntegerAttr group_size_attr = module_op->getAttrOfType<mlir::IntegerAttr>(mlir::StringRef( kGroupSizeAttrName.data(), kGroupSizeAttrName.size()));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 17:24:39 UTC 2024 - 45.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc
LogicalResult matchAndRewrite(Operation* op, PatternRewriter& rewriter) const override { auto tflite_indices_attr = op->getAttrOfType<ArrayAttr>(kTfLiteInputIndices); if (!tflite_indices_attr) return failure(); SmallVector<int64_t, 20> tflite_indices; for (auto index_attr : tflite_indices_attr.getValue()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 20:06:54 UTC 2024 - 45.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc
// this pass. This pass ignores _xla_map_outside_compilation, which will only be // handled by extract_outside_compilation pass. bool HasOutsideCompilationAttribute(Operation* op) { return op->getAttrOfType<StringAttr>(kXlaOutsideCompilationAttr) != nullptr && !op->hasAttrOfType<BoolAttr>(kXlaMapOutsideCompilationAttr); } // Finds op that created a given value. If the value is a BlockArgument, this
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/quantization/common/lift_as_function_call_test.cc
"composite_dot_general_fn", operands, results, attributes)[0] .getDefiningOp(); const auto entry_function_symbol_ref = lifted_op->getAttrOfType<FlatSymbolRefAttr>("_entry_function"); SymbolTable symbol_table(*module_op); auto entry_func = dyn_cast_or_null<func::FuncOp>( symbol_table.lookup(entry_function_symbol_ref.getValue()));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 26.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/convert_control_to_data_outputs.cc
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/tensorflow/transforms/tpu_space_to_depth_pass.cc
// only check if it is a host tf.IteratorGetNext. bool IsSupportedHostInputOp(Operation* op) { TF::IteratorGetNextOp iter = llvm::dyn_cast<TF::IteratorGetNextOp>(op); if (!iter) return false; auto device = op->getAttrOfType<StringAttr>(kDeviceAttr); if (!device) return false; tensorflow::DeviceNameUtils::ParsedName parsed_device; if (!tensorflow::DeviceNameUtils::ParseFullName(device.getValue().str(),
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/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc
return true; } StringAttr GetReplicationAttr(mlir::Operation* op) { return op->getAttrOfType<StringAttr>(TF::kReplicationInfoAttr); } StringAttr GetReplicationAttr(TF::TPUCompilationResultOp op) { // Special case for getting the replication region for // TPUCompilationResultsOp. return op->getAttrOfType<StringAttr>(kTpuCompilationStatus); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 92.9K bytes - Viewed (0)