Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 174 for SetAttr (0.17 sec)

  1. src/test/java/org/codelibs/fess/util/PrunedTagTest.java

        }
    
        public void test_toString() {
            String tag = "tag", id = "id", css = "css", attrName = "attrName", attrValue = "attrValue";
            PrunedTag prunedtag = new PrunedTag(tag);
            prunedtag.setAttr(attrName, attrValue);
            prunedtag.setId(id);
            prunedtag.setCss(css);
            assertEquals("PrunedTag [tag=" + tag + ", id=" + id + ", css=" + css + ", attrName=" + attrName + ", attrValue=" + attrValue + "]",
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. 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)
  3. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

      builder.insert(metadata_op.clone());
      for (Operation& op : func.getOps()) {
        if (!IsTPUOp(&op)) continue;
        op.setAttr(TF::kReplicationInfoAttr, new_group);
      }
      TF::TPUCompilationResultOp new_result = compilation_op.clone();
      new_result->setAttr(kTpuCompilationStatus, new_group);
      builder.insert(new_result);
    }
    
    template <typename OpType>
    LogicalResult FindAndExcludeOp(func::FuncOp func,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top