Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for op_names (0.56 sec)

  1. tensorflow/c/eager/c_api_experimental.cc

    }
    
    void TFE_GetExecutedOpNames(TFE_Context* ctx, TF_Buffer* buf,
                                TF_Status* status) {
      const std::vector<std::string>& op_names =
          tensorflow::unwrap(ctx)->GetLoggedOpsTestonly();
    
      std::ostringstream op_names_oss;
      for (const auto& op : op_names) {
        op_names_oss << op << ", ";
      }
      const std::string& op_names_str = op_names_oss.str();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 11 23:52:39 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  2. tensorflow/cc/framework/scope.cc

                            false /* copy_names */));
    }
    
    Scope Scope::WithOpNameImpl(const string& op_name) const {
      if (impl()->single_use_scope()) {
        UpdateStatus(errors::InvalidArgument("Cannot set op name ", op_name,
                                             " on this scope"));
        return *this;
      }
      return Scope(new Impl(*this, Impl::Tags::OpName(), impl()->name_, op_name));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_unified_experimental_graph.cc

     private:
      friend class GraphContext;  // For access to op_.
      TF_Graph* g_;
      std::unique_ptr<TF_OperationDescription> op_;
      // Hold `op_type` and `op_name` till both are available since we need both
      // to build a graph operation.
      string op_type_;
      const char* op_name_ = nullptr;
      // TODO(srbs): Use this.
      string device_name_;
    };
    
    // GraphContext wraps a TF_Graph modeling a single function and manages the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 20:00:09 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/tfl_stablehlo_pass.cc

    namespace odml {
    
    static bool isDenseI64Array(llvm::StringRef op_name,
                                llvm::StringRef field_name) {
      if (op_name == "stablehlo.broadcast" && field_name == "broadcast_sizes")
        return true;
      if (op_name == "stablehlo.broadcast_in_dim" &&
          field_name == "broadcast_dimensions")
        return true;
      if ((op_name == "stablehlo.convolution" ||
           op_name == "stablehlo.dynamic_conv") &&
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 24 06:08:43 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/quantization/tools/tflite_op_coverage_spec_getters_gen.cc

              // Conditions when using TOCO.
              if (absl::StrContains(op_name, "LSTMOp")) continue;
            } else {
              // Conditions when using MLIR.
              if (!(absl::StrContains(op_name, "LSTMOp") ||
                    absl::StrContains(op_name, "SoftmaxOp") ||
                    absl::StrContains(op_name, "LogisticOp") ||
                    absl::StrContains(op_name, "L2NormalizationOp") ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc

      attrs_[attr_name] = TypeAttr::get(mlir_type);
      return absl::OkStatus();
    }
    
    Status MlirAbstractOp::SetOpName(const char* const op_name) {
      // TODO(aminim): should we use a location?
      if (op_name_) {
        return FailedPrecondition("SetOpName called on already built op.");
      }
      op_name_ = op_name;
      return absl::OkStatus();
    }
    
    Status MlirAbstractOp::AddRef(Type type, Type* output_type) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/converter_gen.cc

    static inline std::string GetOperatorBuilderName(StringRef op_name) {
      assert(op_name.starts_with("TFL_") && "unexpected op prefix");
      assert(op_name.ends_with("Op") && "unexpected op suffix");
    
      // E.g., AddOp -> CreateAddOperator
      std::ostringstream oss;
      oss << "Create" << op_name.drop_front(4).str() << "erator";
      return oss.str();
    }
    
    static inline bool IsLstmOp(const StringRef op_name) {
      return op_name.take_back(6) == "LSTMOp";
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 15:05:28 UTC 2023
    - 23.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc

      if (!op_name_or_status.ok()) return false;
    
      auto op_name = std::move(op_name_or_status).value();
      if (op_name == "NextIteration")
        return mlir::isa<mlir::TF::TensorFlowRefType>(
            mlir::getElementTypeOrSelf(op->getOperand(0).getType()));
    
      if (op_name == "Enter" || op_name == "Exit" || op_name == "Switch" ||
          op_name == "Merge") {
        return mlir::isa<mlir::TF::TensorFlowRefType>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf.cc

        "/tensorflow/core/tf2xla/v1/mlir_failed_xla_legalize_tf_count",
        "Counts the attempts of legalization of ops", "op_name");
    
    auto *mlir_failed_legalization_count = tensorflow::monitoring::Counter<2>::New(
        "/tensorflow/core/tf2xla/v1/mlir_failed_xla_legalize_tf_pass_count",
        "Counts the failure of legalization of ops", "op_name", "legality");
    
    class LegalizeTF : public impl::LegalizeTFBase<LegalizeTF> {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/compilability_check_util.h

      bool IsAssertOrCheckNumerics(absl::string_view op_name) const {
        return op_name == "Assert" || op_name == "CheckNumerics";
      }
    
      bool IsStatefulRandomOp(absl::string_view op_name) const {
        return op_name == "RandomUniform" || op_name == "RandomShuffle" ||
               op_name == "RandomUniformInt" || op_name == "RandomStandardNormal" ||
               op_name == "TruncatedNormal" || op_name == "Multinomial";
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 14.9K bytes
    - Viewed (0)
Back to top