Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 356 for setAttr (0.36 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/tpu_device_propagation.cc

          op_to_update->setAttr(kDeviceAttr, new_device_attr);
          PopulateDeviceForOpResults(*op_to_update, new_device_attr.getValue(),
                                     value_to_device);
    
          if (auto sink =
                  llvm::dyn_cast<tf_executor::NextIterationSinkOp>(op_to_update)) {
            auto source = sink.GetSource();
            source->setAttr(kDeviceAttr, new_device_attr);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

          for (const auto& attr_name : attr_names) {
            if (!global_iter_id_op->hasAttr(attr_name)) continue;
            offset->setAttr(attr_name, global_iter_id_op->getAttr(attr_name));
            new_global_iter_id->setAttr(attr_name,
                                        global_iter_id_op->getAttr(attr_name));
          }
          // Make the next function to get inlined use a different offset.
          ++offset_value;
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/mark_initialized_variables.cc

        } else {
          auto handle = resource_tensor.scalar<tensorflow::ResourceHandle>()();
          is_variable_initialized =
              IsVariableInitialized(var_op, handle.device(), mgr, session);
        }
        var_op->setAttr("_is_initialized",
                        BoolAttr::get(context, is_variable_initialized));
      }
      return success();
    }
    
    LogicalResult MarkInitializedVariablesInFunction(ModuleOp module,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 13 19:14:56 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top