- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 101 for constop (0.12 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc
void SetAllVarIsInitializedToTrue(Block* block) { auto builder = OpBuilder::atBlockBegin(block); TF::ConstOp const_true = nullptr; for (auto op : llvm::make_early_inc_range(block->getOps<TF::VarIsInitializedOp>())) { builder.setInsertionPoint(op); if (!const_true) const_true = builder.create<TF::ConstOp>( op.getLoc(), DenseIntElementsAttr::get(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 55.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_export.cc
const std::vector<int32_t>& results); BufferOffset<tflite::Operator> BuildCustomOperator( Operation* inst, mlir::TFL::CustomOp op, const std::vector<int32_t>& operands, const std::vector<int32_t>& results); std::optional<CustomOptionsOffset> CreateFlexOpCustomOptions( const ::tensorflow::NodeDef& node_def, const mlir::Location& loc);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/generic.rules
(And16 (Const16 [c]) (Const16 [d])) => (Const16 [c&d]) (And32 (Const32 [c]) (Const32 [d])) => (Const32 [c&d]) (And64 (Const64 [c]) (Const64 [d])) => (Const64 [c&d]) (Or8 (Const8 [c]) (Const8 [d])) => (Const8 [c|d]) (Or16 (Const16 [c]) (Const16 [d])) => (Const16 [c|d]) (Or32 (Const32 [c]) (Const32 [d])) => (Const32 [c|d]) (Or64 (Const64 [c]) (Const64 [d])) => (Const64 [c|d])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 22:21:05 UTC 2024 - 135.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc
// definition, potentially leading to bogus _replication_info attributes. So // we just scrub all tf.Constants of all extra attributes. // TODO(kramm): Remove this once tf.Const's folder is aware of extra // attributes. auto value_str_attr = StringAttr::get(&getContext(), "value"); getOperation().walk([&](mlir::TF::ConstOp cst) { auto dict = cst->getAttrDictionary();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 22:03:30 UTC 2024 - 39.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc
return compile_mlir_result.status(); } absl::StatusOr<mlir::OwningOpRef<mlir::ModuleOp>> GraphToModule( bool unconditionally_use_set_output_shapes, const Graph& graph, llvm::ArrayRef<std::string> control_rets, const FunctionLibraryDefinition& flib_def, const GraphDebugInfo& debug_info, mlir::MLIRContext* context) { mlir::DialectRegistry registry; RegisterDialects(registry);
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/tensorflow/transforms/shape_inference.cc
while (!worklist.empty()) { mlir::Operation* const use = worklist.pop_back_val(); // Follow the `CastOp`/`IdentityOp`'s users to handle the `RestoreV2` -> // (optionally `IdentityOp`) -> `CastOp` `AssignVariableOp` case. if (llvm::isa<TF::CastOp, TF::IdentityOp>(use)) { llvm::append_range(worklist, use->getUsers()); continue; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 08 07:28:49 UTC 2024 - 134.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc
return func_op; } TF::StatefulPartitionedCallOp EncapsulateOpsInFunc( OpBuilder& builder, SymbolTable& symbol_table, const llvm::SetVector<Operation*>& ops, const llvm::SetVector<Value>& inputs, const llvm::SetVector<Value>& outputs, func::FuncOp parent_func, ModuleOp module, const std::string& name, bool flag_for_inlining) { // Moves all of the Operations in 'ops' into a newly created func.FuncOp
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 92.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc
// the size of the bias constant. TFL::QConstOp CreateTflConstOpForDummyBias( const Location loc, const double input_scale, TFL::QConstOp filter_const_op, PatternRewriter& rewriter, const bool is_per_channel, MLIRContext& ctx) { const ArrayRef<int64_t> filter_shape = filter_const_op.getResult().getType().getShape(); Type bias_quantized_type; if (is_per_channel) { const auto filter_quantized_element_type =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 09:00:19 UTC 2024 - 99.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/lite/quantize_model_test.cc
ASSERT_THAT(status, Eq(kTfLiteOk)); const auto& subgraph = model_.subgraphs[0]; auto conv_op = subgraph->operators[0].get(); const int input_tensor_idx = 0; const int weights_tensor_idx = 1; const int bias_tensor_index = 2; const int output_tensor_idx = 0; const auto bias_tensor = subgraph->tensors[conv_op->inputs[bias_tensor_index]].get(); const auto input_tensor =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 23:15:24 UTC 2024 - 73.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc
return false; } // Returns true if any op in `cluster_ops` has outputs consumed by ops not // `cluster_ops` with a non-static shape. bool HasDynamicOutputs(const llvm::SmallSetVector<Operation*, 4>& cluster_ops) { for (Operation* op : cluster_ops) { for (const OpOperand& use : op->getUses()) { if (cluster_ops.count(use.getOwner())) { continue; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 21:25:12 UTC 2024 - 68.3K bytes - Viewed (0)