Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 168 for setFAttr (0.26 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/tflite_import_export.cc

          auto float_attr =
              mlir::FloatAttr::get(float_type, static_cast<float>(cost));
          device_costs.push_back({device_identifier, float_attr});
        }
    
        op->setAttr("per_device_costs",
                    mlir::DictionaryAttr::get(module.getContext(), device_costs));
      });
    }
    
    }  // namespace
    
    //////////// Importer ////////////
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  2. tensorflow/c/python_api.h

    namespace tensorflow {
    
    void AddControlInput(TF_Graph* graph, TF_Operation* op, TF_Operation* input);
    
    // Changes an attr value in the node_def Protocol Buffer and sets a status upon
    // completion.
    void SetAttr(TF_Graph* graph, TF_Operation* op, const char* attr_name,
                 TF_Buffer* attr_value_proto, TF_Status* status);
    
    // Clears the attr in the node_def Protocol Buffer and sets a status upon
    // completion.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jul 12 18:48:56 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/tac/transforms/pick_subgraphs.cc

              // Set interface_name & target to the call_op as well.
              new_call->setAttr(kInterfaceNameAttr,
                                builder->getStringAttr(interface_name));
              new_call->setAttr(
                  kDevice,
                  builder->getStringAttr(preferred_inference_device_type.hardware));
              new_call->setAttr(
                  kInferenceType,
                  builder->getStringAttr(GetInferenceString(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 24 15:10:02 UTC 2022
    - 19.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/mark_functions_noinline.cc

      Builder builder(&getContext());
    
      // Adds the `tf._noinline = true` attribute to the function if the name
      // matches.
      if (noinline_functions.contains(func_op.getSymName())) {
        func_op->setAttr(kTfNoinlineAttr, builder.getBoolAttr(true));
        LLVM_DEBUG(llvm::dbgs()
                   << "Marked tf._noinline = true: " << func_op.getSymName());
      }
    }
    
    static PassRegistration<MarkFunctionsNoinlinePass> pass{};
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 18 02:52:57 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/analyze_variables.cc

                  getElementTypeOrSelf(operand.getType()))) {
            legalize_to_tfl = false;
            return WalkResult::interrupt();
          }
        }
        return WalkResult::advance();
      });
      module->setAttr(kLegalizeTflVariables,
                      BoolAttr::get(context, legalize_to_tfl));
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateAnalyzeVariablesPass() {
    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/add_functions_for_exported_names.cc

    // Set the (array of) exported name(s) of a (public) function to just
    // contain the given string.
    void SetExportedName(func::FuncOp f, StringRef name) {
      OpBuilder b(f);
      f->removeAttr(kTfSavedModelExportedNamesAttr);
      f->setAttr(kTfSavedModelExportedNamesAttr, b.getStrArrayAttr({name}));
    }
    
    // Convert a savedmodel public function into a private function.
    // This means we need to remove any attributes that are only allowed
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

          /*disabled_checks=*/empty_array_attr);
      xla_call_module_op->setAttr(TF::kStablehloEntryFunctionAttrName,
                                  SymbolRefAttr::get(stablehlo_func_op));
      // Set jax.uses_shape_polymorphism=true to enable shape refinement at runtime.
      // This is needed for native serialization version >= 8.
      xla_call_module_op->setAttr(
          kStablehloModuleAttrsAttrName,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/passes/mark_ops_for_outside_compilation.cc

                !HasOutsideCompiledAncestor(input_defining_op) &&
                !input_defining_op->hasAttrOfType<StringAttr>(
                    kXlaOutsideCompilationAttr)) {
              input_defining_op->setAttr(
                  kXlaOutsideCompilationAttr,
                  StringAttr::get(input_defining_op->getContext(), "auto"));
              outside_compiled_ops.push(input_defining_op);
            }
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tpu_host_computation_expansion.cc

            should_expand_op_to_host_computation = false;
            continue;
          }
        }
    
        if (should_expand_op_to_host_computation)
          head_outside_compiled_op->setAttr(kXlaOutsideCompilationAttr,
                                            builder->getStringAttr(""));
      }
    }
    
    #define GEN_PASS_DEF_TPUHOSTCOMPUTATIONEXPANSIONPASS
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/quantization/quantization_context.cc

            input_specs.push_back(TypeAttr::get(requantize.params));
          } else {
            input_specs.push_back(TypeAttr::get(state.params));
          }
        }
        op->setAttr("input_specs", ArrayAttr::get(context, input_specs));
    
        llvm::SmallVector<Attribute, 4> output_specs;
        auto original_output_specs = op.getOutputSpecs().getValue();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
Back to top