Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 6,625 for functor (0.13 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/mlir2graphdef/function-control-ret.mlir

    Adrian Kuegel <******@****.***> 1648469008 -0700
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 28 12:06:33 UTC 2022
    - 1004 bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/graph-function-control-ret-diff-island.pbtxt

        value {
          list {
            type: DT_FLOAT
          }
        }
      }
      attr {
        key: "f"
        value {
          func {
            name: "test_fn"
          }
        }
      }
    }
    library {
      function {
        signature {
          name: "test_fn"
          input_arg {
            name: "a"
            type: DT_FLOAT
          }
          output_arg {
            name: "d"
            type: DT_FLOAT
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 10 19:53:21 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfrt/analysis/cost_analysis.h

    class CostAnalysis {
     public:
      explicit CostAnalysis(
          mlir::func::FuncOp func_op,
          const tfrt_stub::CostRecorder* cost_recorder = nullptr) {
        cost_recorder_ = cost_recorder;
        AnalyzeArguments(func_op);
        AnalyzeBlock(&func_op.front());
      }
    
      int64_t GetCost(mlir::Operation* op) const;
    
     private:
      void AnalyzeArguments(mlir::func::FuncOp func_op);
      void AnalyzeBlock(mlir::Block* block);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfrt/analysis/tensor_array_side_effect_analysis.h

     public:
      explicit TensorArraySideEffectAnalysis(mlir::ModuleOp module);
    
      // Return if the function contains only non-side-effecting ops or TensorArray
      // ops.
      bool HasAtMostTensorArrayEffect(mlir::func::FuncOp func_op) const {
        return set_.count(func_op) > 0;
      }
    
     private:
      llvm::DenseSet<mlir::func::FuncOp> set_;
    };
    
    }  // namespace tfrt_compiler
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 30 02:12:49 UTC 2022
    - 2K 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/tests/mlir2graphdef/function-resource-args-handle-info.mlir

    Tres Popp <******@****.***> 1648211118 -0700
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 25 12:28:56 UTC 2022
    - 1.2K bytes
    - Viewed (0)
Back to top