Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 648 for functor (0.27 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tensor_device_copy_conversion.cc

    };
    
    // Folds tf.IdentityOp and tf.IdentityNOp if op device and the argument devices
    // from the defining ops match.
    void TensorDeviceCopyConversionPass::runOnOperation() {
      func::FuncOp func_op = getOperation();
    
      auto should_fold_op_func = [&func_op](const Value &arg,
                                            const StringAttr &op_device) {
        // In TFRT TPU, tensor transfer is handled specifically by D2H and
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc

              }
            }
          }
        });
      }
      // Remove `kSkipIslandOutlining` attributes.
      for (func::FuncOp func_op : getOperation().getOps<func::FuncOp>()) {
        if (func_op->hasAttr(mlir::TF::kSkipIslandOutlining)) {
          func_op->removeAttr(mlir::TF::kSkipIslandOutlining);
        }
      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/merge_fusion_with_dequantize.cc

          return failure();
    
        // Fetch the callee function.
        SymbolTable symbol_table(call_op->getParentOfType<ModuleOp>());
        auto func_op =
            dyn_cast_or_null<func::FuncOp>(symbol_table.lookup(func_name));
        if (!func_op) return failure();
        // The quantized fusion should have requantize and return ops at the end.
        auto return_op = dyn_cast_or_null<func::ReturnOp>(
            func_op.getRegion().getBlocks().front().getTerminator());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc

          }
        }
      }
      return false;
    }
    
    // Lifts HashTable ops in the target function as function arguments and returns
    // the lifted ops. These ops  will then be added to the caller function and
    // passed to the target function.
    LogicalResult LiftHashTableOpsToArguments(ModuleOp module_op,
                                              func::FuncOp target_func) {
      if (!llvm::hasSingleElement(target_func)) return success();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util.cc

      return IsReplicatedGraph(module);
    }
    
    bool HasTPUPartitionedCallOpInModule(mlir::ModuleOp module) {
      bool has_tpu_partitioned_call = false;
      for (auto func_op : module.getOps<mlir::func::FuncOp>()) {
        func_op->walk([&](mlir::TF::TPUPartitionedCallOp op) {
          has_tpu_partitioned_call = true;
        });
        if (has_tpu_partitioned_call) break;
      }
      return has_tpu_partitioned_call;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 12:22:33 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.h

                              std::unique_ptr<Graph>* graph,
                              FunctionLibraryDefinition* flib_def);
    
    // Converts an MLIR function and adds it to a FunctionLibraryDefinition.
    Status ConvertMlirFunctionToFunctionLibraryDef(mlir::func::FuncOp func,
                                                   const GraphExportConfig& configs,
                                                   FunctionDef* function_def);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 3.1K bytes
    - Viewed (0)
Back to top