Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 445 for FuncOp (0.13 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/add_functions_for_exported_names.cc

              AddFunctionsForExportedNamesPass> {
      void runOnOperation() override;
    };
    
    // Set the (array of) exported name(s) of a (public) function to just
    // contain the given string.
    void SetExportedName(func::FuncOp f, StringRef name) {
      OpBuilder b(f);
      f->removeAttr(kTfSavedModelExportedNamesAttr);
      f->setAttr(kTfSavedModelExportedNamesAttr, b.getStrArrayAttr({name}));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

            /*is_hybrid=*/is_hybrid);
    
        const mlir::func::FuncOp quantized_func = dyn_cast_or_null<func::FuncOp>(
            symbol_table.lookup(quantized_function_name));
        if (quantized_func == nullptr) {
          call_op->emitError("Failed to find the quantized function: " +
                             quantized_function_name);
          return failure();
        }
        mlir::func::FuncOp new_quantized_func =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/prepare_quantize.cc

      // ranges.
      bool SetInputNodesQuantizationParams(func::FuncOp func);
    
      // The function might contain more stats ops than required, and it will
      // introduce requantize if the calibration stats have conflicts. This method
      // tries to remove all the redundant stats ops.
      bool RemoveRedundantStats(func::FuncOp func);
    
      // Verify the quantization specification is expected for quantizing the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/convert_to_legacy_compile_and_replicate_attributes.cc

      return failure(result.wasInterrupted());
    }
    
    void ConvertToLegacyCompileAndReplicateAttributesPass::runOnOperation() {
      func::FuncOp func_op = getOperation();
      if (failed(ConvertToLegacyAttributes(func_op))) return signalPassFailure();
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<func::FuncOp>>
    CreateConvertToLegacyCompileAndReplicateAttributesPass() {
      return std::make_unique<ConvertToLegacyCompileAndReplicateAttributesPass>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_util.cc

    #include "tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_util.h"
    
    #include "tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_async.h"
    
    namespace tfrt {
    namespace fallback_async {
    
    bool IsArgConsumedByFallback(mlir::func::FuncOp func, int arg_index) {
      auto arg = func.getArgument(arg_index);
    
      // Return true if any user is a fallback op. It is more interesting to know
      // whether it is consumed by any fallback op than whether it is only consumed
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 30 02:12:49 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tf_device_assignment.cc

          }
        });
      }
    };
    }  // namespace
    
    std::unique_ptr<OperationPass<func::FuncOp>> CreateSimpleTFDeviceAssignmentPass(
        llvm::StringRef default_device) {
      return std::make_unique<SimpleTFDeviceAssignmentPass>(default_device);
    }
    
    std::unique_ptr<OperationPass<func::FuncOp>>
    CreateTFDeviceAssignmentByFuncAttrPass() {
      return std::make_unique<TFDeviceAssignmentByFuncAttrPass>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/unfreeze_constants.cc

    // is "restore_op". Creates and returns a new initializer function iff such
    // `FuncOp` is not found. The newly created initializer function's
    // initializer_type is "restore_op" and its symbol will be added to the symbol
    // table and session_initializer op's "intializer" attribute.
    func::FuncOp GetOrCreateInitializerFunc(ModuleOp module_op) {
      if (auto init_func_op = GetInitializerFunction(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 16 15:04:53 UTC 2023
    - 14K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

        ModuleOp module) {
      SymbolTableCollection table;
      SymbolUserMap symbol_map(table, module);
      llvm::DenseMap<func::FuncOp, llvm::DenseSet<func::FuncOp>> caller_callee_map;
      // Creates work queue for determining reachability below.
      std::queue<func::FuncOp> function_worklist;
    
      for (auto func : module.getOps<func::FuncOp>()) {
        for (auto user : symbol_map.getUsers(func)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/experimental/tac/transforms/fold_constants_to_subgraph.cc

                argument_index = i;
                break;
              }
            }
    
            // Copy the const into the consumer func and replace their usages.
            func::FuncOp func = module.lookupSymbol<func::FuncOp>(function_name);
    
            CopyConstantIntoFunc(argument_index, op, func);
          }
        });
      }
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/modify_io_nodes.cc

      LogicalResult ModifyInputNodes(func::FuncOp func,
                                     llvm::SmallVectorImpl<Type>& new_input_types,
                                     OpBuilder builder);
    
      // Modifies the element types of entry block returns to be user specified
      // and returns the new return types.
      LogicalResult ModifyOutputNodes(func::FuncOp func,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top