- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 143 for setAttrs (0.14 sec)
-
tensorflow/compiler/mlir/lite/transforms/push_transpose_through_ewise.cc
auto *new_ewise_op = rewriter.create(op->getLoc(), op->getName().getIdentifier(), {tpose_arg1.getOperand(0), tpose_arg2.getOperand(0)}, new_out_type, op->getAttrs()); // Apply original tranpose to output of ewise op. auto out_tpose_op = rewriter.create<TFL::TransposeOp>( new_ewise_op->getLoc(), op->getResult(0).getType(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc
new_operands.emplace_back(operands[i]); } } auto new_while_op = builder.create<T>(while_op->getLoc(), new_operand_types, new_operands, while_op->getAttrs()); int new_index = 0; for (int i = 0; i < num_operands; ++i) { if (!skip_indices.test(i)) { while_op->getResult(i).replaceAllUsesWith( new_while_op->getResult(new_index++)); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 09:56:53 UTC 2024 - 19.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_device_propagation.cc
op_to_update->setAttr(kDeviceAttr, new_device_attr); PopulateDeviceForOpResults(*op_to_update, new_device_attr.getValue(), value_to_device); if (auto sink = llvm::dyn_cast<tf_executor::NextIterationSinkOp>(op_to_update)) { auto source = sink.GetSource(); source->setAttr(kDeviceAttr, new_device_attr);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc
// OperationState so we can add regions to the new up. OperationState state(op->getLoc(), op->getName().getStringRef(), operands, new_results, op->getAttrs(), op->getSuccessors()); for (Region ®ion : op->getRegions()) { Region &new_region = *state.addRegion(); rewriter.inlineRegionBefore(region, new_region, new_region.begin());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/reduce_type_precision.cc
op.getLoc(), /*result=*/ mlir::cast<TensorType>(op.getResult().getType()) .clone(builder.getI4Type()), /*operand=*/op.getOperands(), op->getAttrs()); rewriter.replaceAllUsesWith(op.getResult(), new_gather_op.getResult()); return success(); } }; class ReduceTypePrecisionPass
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_resource_read_for_write.cc
auto loc = cluster_func.getLoc(); auto new_cluster_func = builder.create<tf_device::ClusterFuncOp>( loc, cluster_func.getResultTypes(), operands, cluster_func->getAttrs()); cluster_func.replaceAllUsesWith(new_cluster_func); func::FuncOp func = cluster_func.getFuncOp(); Block& block = func.front(); for (Value read_operand : read_operands)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 16:54:40 UTC 2024 - 5.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go
// doesn't automatically preclude some scenarios from happening. t.Parallel() if ignoreWatchCacheTests && tt.ignoreForWatchCache { t.Skip() } if tt.pred.GetAttrs == nil { tt.pred.GetAttrs = getAttrs } out := &example.PodList{} storageOpts := storage.ListOptions{ ResourceVersion: tt.rv, ResourceVersionMatch: tt.rvMatch, Predicate: tt.pred,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 12:45:33 UTC 2024 - 91.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/analyze_variables.cc
getElementTypeOrSelf(operand.getType()))) { legalize_to_tfl = false; return WalkResult::interrupt(); } } return WalkResult::advance(); }); module->setAttr(kLegalizeTflVariables, BoolAttr::get(context, legalize_to_tfl)); } } // namespace std::unique_ptr<OperationPass<ModuleOp>> CreateAnalyzeVariablesPass() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc
/*disabled_checks=*/empty_array_attr); xla_call_module_op->setAttr(TF::kStablehloEntryFunctionAttrName, SymbolRefAttr::get(stablehlo_func_op)); // Set jax.uses_shape_polymorphism=true to enable shape refinement at runtime. // This is needed for native serialization version >= 8. xla_call_module_op->setAttr( kStablehloModuleAttrsAttrName,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/mark_ops_for_outside_compilation.cc
!HasOutsideCompiledAncestor(input_defining_op) && !input_defining_op->hasAttrOfType<StringAttr>( kXlaOutsideCompilationAttr)) { input_defining_op->setAttr( kXlaOutsideCompilationAttr, StringAttr::get(input_defining_op->getContext(), "auto")); outside_compiled_ops.push(input_defining_op); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.4K bytes - Viewed (0)