Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetStatefulAttrName (0.36 sec)

  1. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

        grad.set_function_name(function_name);
        grad.set_gradient_func(grad_func.getName().str());
        TF_RETURN_IF_ERROR(flib_def->AddGradientDef(grad));
      }
    
      auto stateful_string = mlir::TF::TensorFlowDialect::GetStatefulAttrName();
      if (auto attr = function->getAttrOfType<mlir::UnitAttr>(stateful_string)) {
        func_def.mutable_signature()->set_is_stateful(true);
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

        grad.set_function_name(function_name);
        grad.set_gradient_func(grad_func.getName().str());
        TF_RETURN_IF_ERROR(flib_def->AddGradientDef(grad));
      }
    
      auto stateful_string = mlir::TF::TensorFlowDialect::GetStatefulAttrName();
      if (auto attr = function->getAttrOfType<mlir::UnitAttr>(stateful_string)) {
        func_def.mutable_signature()->set_is_stateful(true);
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

      }
    
      // Checks opdef stateful attribute and import that as Function Attribute
      if (func_def->signature().is_stateful()) {
        auto stateful_str = mlir::TF::TensorFlowDialect::GetStatefulAttrName();
        attributes.push_back(
            builder_.getNamedAttr(stateful_str, builder_.getUnitAttr()));
      }
    
      // Checks for an associated custom gradient function. Adds it to the attribute
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
Back to top