Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for getNamedAttr (0.27 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc

            llvm::ArrayRef<Value>{},
            llvm::ArrayRef<NamedAttribute>{
                builder->getNamedAttr(kDeviceAttr, builder->getStringAttr(device)),
                builder->getNamedAttr("container", builder->getStringAttr("")),
                builder->getNamedAttr(
                    "shared_name",
                    builder->getStringAttr(GetRandomStateVariableName()))}));
      }
      return state_vars;
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc

          execute_launch.getLoc(), new_output_types,
          var_access_info.new_operand_values,
          llvm::ArrayRef<NamedAttribute>{
              builder->getNamedAttr(
                  "device_var_reads_indices",
                  builder->getI64ArrayAttr(device_var_reads_indices)),
              builder->getNamedAttr(
                  "device_var_updates_indices",
                  builder->getI64ArrayAttr(device_var_updates_indices))});
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 17:52:11 UTC 2024
    - 27K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc

          }
          if (absl::StrContains(op_name, "Dataset") &&
              mlir::isa<TF::FuncAttr>(*mlir_attr)) {
            mlir_attr = mlir::cast<TF::FuncAttr>(*mlir_attr).getName();
          }
          attributes.push_back(builder.getNamedAttr(attr_name, *mlir_attr));
        }
        return success();
      }
    };
    
    class LiftTfliteFlexOpsPass
        : public impl::LiftTfliteFlexOpsPassBase<LiftTfliteFlexOpsPass> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_deserialization.cc

                new_config.push_back(attr);
              }
            }
    
            Builder builder(op.getContext());
            // Sets the `called_index` attribute to the TF function's name.
            new_config.push_back(builder.getNamedAttr(kCalledFuncAttrName,
                                                      function_list[called_index]));
    
            // Sets the `tf.backend_config` attribute to the `new_config`.
            op->setAttr(kTfBackendConfigAttrName,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

              operand.index(), kAttrArgumentNameAttr);
          auto attr_value =
              signature.getArgAttr(operand.index(), kAttrArgumentDefaultAttr);
          arg_attrs->push_back(
              rewriter.getNamedAttr(attr_name.getValue(), attr_value));
          continue;
        }
    
        // The index is valid for the call_op.
        Value input = call_op.getOperand(operand.index());
        Operation* input_op = input.getDefiningOp();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

        }
    
        device_attrs.push_back(
            builder->getNamedAttr(tensorflow::GetDeviceAliasForLogicalCore(core),
                                  builder->getStrArrayAttr(devices_by_core)));
    
        // For data parallelism, also add replicated host devices, as these are
        // necessary for outside compilation.
        device_attrs.push_back(builder->getNamedAttr(
            tensorflow::GetDeviceAliasForHostOfLogicalCore(core),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

      // This is needed for native serialization version >= 8.
      xla_call_module_op->setAttr(
          kStablehloModuleAttrsAttrName,
          builder.getDictionaryAttr(builder.getNamedAttr(
              kUsesShapePolymorphismAttr, builder.getBoolAttr(true))));
    
      for (auto [original_output_value, xla_call_module_op_result_value] :
           llvm::zip_equal(outputs, xla_call_module_op->getResults())) {
    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/quantization/common/lift_as_function_call_test.cc

      ASSERT_THAT(main_fn, NotNull());
    
      auto dot_general_op =
          FindOperationOfType<mlir::stablehlo::DotGeneralOp>(main_fn);
    
      const SmallVector<NamedAttribute>& attributes = {
          builder_.getNamedAttr(
              "precision_config",
              builder_.getArrayAttr(SmallVector<Attribute>(
                  1, mlir::stablehlo::PrecisionAttr::get(
                         ctx_.get(), mlir::stablehlo::Precision::DEFAULT)))),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc

      // This is needed for native serialization version >= 8.
      call_op->setAttr(kStablehloModuleAttrsAttrName,
                       builder.getDictionaryAttr(builder.getNamedAttr(
                           kUsesShapePolymorphismAttr, builder.getBoolAttr(true))));
    
      return call_op.getOutput();
    }
    
    // Creates the function call op based on the given call_op_type argument.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/converter_gen.cc

              continue;
            StringRef attr_type = mlir::tblgen::Attribute(arg_def).getAttrDefName();
            os << formatv(
                "    attributes.emplace_back(builder.getNamedAttr(\"{0}\","
                " Build{1}(op->{0}, builder)));\n",
                arg_name, attr_type);
          }
        }
    
        os << "    return;\n";
        os << "  }\n";
      }
      if (builtin_options_id == 2) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 15:05:28 UTC 2023
    - 23.7K bytes
    - Viewed (0)
Back to top