- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,227 for functor (0.2 sec)
-
tensorflow/compiler/jit/device_compilation_cluster_signature.cc
} return h; } absl::StatusOr<Signature> Signature::Build( const NameAttrList& function, absl::Span<const XlaCompiler::Argument> args) { Signature signature; signature.name = Canonicalize(function.name(), AttrSlice(&function.attr())); for (const XlaCompiler::Argument& arg : args) { switch (arg.kind) { case XlaCompiler::Argument::kConstant:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 06:59:07 UTC 2024 - 4.7K bytes - Viewed (0) -
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) -
tensorflow/cc/experimental/libtf/function.cc
auto cleanup_tensors = absl::MakeCleanup([outs]() { for (auto t : outs) { t->Unref(); } }); return Unflatten(outs, concrete_fn.output_signature); } StatusOr<Function::ConcreteFunction> Function::GetConcreteFunction( TaggedValue value) const { if (concrete_fns_.empty()) { return tensorflow::errors::FailedPrecondition( "No registered ConcreteFunctions."); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 04 19:49:06 UTC 2024 - 9.1K bytes - Viewed (0) -
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) -
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) -
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) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/unwrap_xla_call_module_op.cc
TF::kStablehloEntryFunctionAttrName) .getValue(); func::FuncOp func_op = symbol_table.lookup<func::FuncOp>(function_name); // We should not unwrap if the function is not from // ReplaceStablehloOpsInMainFunctionWithXlaCallModuleOpsPass. if (!func_op->hasAttr(TF::kFromXlaCallModuleAttrName)) { return; } MLIRContext* context = call_op.getContext();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 4.8K bytes - Viewed (0) -
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) -
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) -
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)