Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,831 for functor (0.22 sec)

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

      // above may invalidate previously inserted islands mid-loop.
      for (MergedIsland& island : merged_islands_)
        island_to_merged_island_.try_emplace(island.insert_point, &island);
    
      // This functor merges the given `old_merged_island` into the
      // `new_merged_island`. `merge_in_front` is whether the old island should be
      // merged into the front of the new island, or the back.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Function.java

     * java.util.function.Function java.util.function.Function}.
     *
     * <p>The {@link Functions} class provides common functions and related utilities.
     *
     * <p>See the Guava User Guide article on <a
     * href="https://github.com/google/guava/wiki/FunctionalExplained">the use of {@code Function}</a>.
     *
     * <h3>For Java 8+ users</h3>
     *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu May 16 14:34:47 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfrt/function/function.cc

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    
    #include "tensorflow/compiler/mlir/tfrt/function/function.h"
    
    #include "absl/log/log.h"
    #include "absl/strings/match.h"
    #include "mlir/IR/OperationSupport.h"  // from @llvm-project
    #include "mlir/Pass/PassManager.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 08:13:15 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfrt/function/function.h

      // to proactively transfer the result to host since the consumer op (or
      // function) of the result may still be on TPU.
      // TODO(b/194081364): remove this option once we unify servo TPU serving
      // result transfer behavior.
      bool tpu_transfer_result_to_host = false;
    };
    
    // Compile MLIR generated by tf.function in TF dialect into BEF.
    Status CompileTFMLIRToBEF(const TfrtFunctionCompileOptions& options,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 04:50:20 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.cc

            continue;
          }
    
          return symbol_use.getUser()
              ->emitError("exported function cannot be internally referenced")
              .attachNote(func.getLoc())
              .append("references this exported function");
        }
      }
      return success();
    }
    
    LogicalResult VerifyExportedFunc(func::FuncOp func) {
      bool reached_bound_inputs = false;
      auto module = func->getParentOfType<ModuleOp>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc

      return IsPureFunction(func_op);
    }
    
    bool OpSideEffectCollector::IsPureFunction(func::FuncOp func_op) const {
      auto it = is_pure_function_.find(func_op);
      if (it == is_pure_function_.end()) {
        bool is_pure = true;
        is_pure_function_[func_op] = is_pure;  // prevent infinite recursion
        func_op->walk([&](Operation* op) {
          if (op == func_op) {
            return WalkResult::advance();
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

      std::vector<Type> output_types = GetValueTypes(outputs);
      builder.setInsertionPointToEnd(&module.getBodyRegion().back());
      func::FuncOp func_op = builder.create<func::FuncOp>(
          module.getLoc(), name,
          builder.getFunctionType(input_types, output_types));
      func_op.setPrivate();
    
      return func_op;
    }
    
    TF::StatefulPartitionedCallOp EncapsulateOpsInFunc(
        OpBuilder& builder, const llvm::SetVector<Operation*>& ops,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfrt/analysis/cost_analysis.cc

      assert(cost_map_.count(op) > 0);
      return cost_map_.lookup(op);
    }
    
    void CostAnalysis::AnalyzeArguments(mlir::func::FuncOp func_op) {
      // Use the max size among function inputs as the default size of dynamic
      // shaped tensors in the function.
      for (auto arg : func_op.getArguments()) {
        if (!mlir::isa<mlir::TensorType>(arg.getType())) continue;
        auto type = mlir::cast<mlir::TensorType>(arg.getType());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.h

    //   correct execution).
    class SideEffectAnalysisInfo {
     public:
      SideEffectAnalysisInfo() = default;
    
      // Constructs analysis info by analyzing the given function.
      SideEffectAnalysisInfo(func::FuncOp func_op,
                             const OpSideEffectCollector& op_side_effect_collector,
                             const TF::ResourceAliasAnalysis::Info& alias_analysis,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/cluster_tf_ops_pass.cc

      func::FuncOp partition_op;
    };
    
    // Returns a map that maps the host address to the metadata of the function
    // for that remote host. The metadata of the function specifies the input
    // values, result values, result devices and the operations to be included in
    // the function body.
    std::optional<llvm::StringMap<FunctionMetadata>> GetFunctionMetadatas(
        func::FuncOp func_op) {
      llvm::StringMap<FunctionMetadata> metadatas;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top