Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 84 for setFAttr (0.15 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/unfreeze_constants.cc

                          /*arg_types=*/{}, /*arg_locs=*/{});
    
      init_func->setAttr(kTfSavedModelExportedNamesAttr,
                         builder.getStrArrayAttr(
                             {"tf_saved_model.session_initializer_restore_op"}));
      init_func->setAttr(
          kTfSavedModelInitializerTypeAttr,
          builder.getStringAttr(kTfSavedModelInitializerRestoreType));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 16 15:04:53 UTC 2023
    - 14K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/node_matchers.cc

    }
    
    impl::NodeMatcherProperties impl::Attr(std::pair<string, AttrValue> attr) {
      impl::NodeMatcherProperties props;
      props.set_attr(std::move(attr));
      return props;
    }
    
    impl::NodeMatcherProperties impl::Attr(string name) {
      impl::NodeMatcherProperties props;
      props.set_attr({std::move(name), std::nullopt});
      return props;
    }
    
    NodeMatcherProperties ConstantValue(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 03 16:15:20 UTC 2022
    - 16.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc

          {StringAttr::get(context, "outputs"),
           StringAttr::get(context, absl::StrJoin(output_names, ","))});
      auto dictAttr = DictionaryAttr::get(context, func_attrs);
      main_func->setAttr(StringAttr::get(context, kEntryFunctionAttr), dictAttr);
      main_func->setAttr(
          kTfSavedModelExportedNamesAttr,
          builder.getStrArrayAttr({kImportModelDefaultGraphFuncName}));
    
      if (input_names.size() != main_func.getNumArguments() ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_sharding_identification_pass.cc

        }
      }
    
      // Update input/output sharding attributes on tf_device.cluster_func op.
      cluster_func->setAttr(tensorflow::kInputShardingAttr,
                            GetStrArrayAttr(builder, sharding_for_args));
      cluster_func->setAttr(tensorflow::kOutputShardingAttr,
                            GetStrArrayAttr(builder, sharding_for_rets));
      return mlir::success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc

                getContext(), ftype.getResults(), graph_func.getAllResultAttrs(),
                res_types, res_attrs)))
          return failure();
    
        // Update the function type which has excluded the control args.
        func->setAttr("function_type", TypeAttr::get(rewriter.getFunctionType(
                                           arg_types, res_types)));
    
        // Update arg/result attributes.
        func.setAllArgAttrs(arg_attrs);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/dilated_conv.h

                  addtional_pad !=
              bts_crops_attr.getValues<APInt>()[{i, j}].getSExtValue()) {
            op->setAttr("padding", rewriter.getStringAttr("SAME"));
            break;
          }
        }
      }
    
      // Set dilations
      op->setAttr("dilations", dilations_attr.value());
    
      if (expand_op) {
        // If there is `expand_op`, we need to rewire the inputs to bypass the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/utils/lstm_utils_test.cc

      }
    
      if (cifg) {
        attributes.push_back(kCoupleInputForgetGates);
      }
    
      mlir::StringAttr attr_values =
          builder->getStringAttr(llvm::join(attributes, ","));
    
      func->setAttr(kTFImplements, attr_values);
      return func;
    }
    
    class LstmUtilsTest : public ::testing::Test {
     protected:
      LstmUtilsTest() {}
    
      void SetUp() override {
        context_ = std::make_unique<mlir::MLIRContext>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc

                values.push_back(range.second - range.first);
              }
              auto attr_value =
                  mlir::DenseI32ArrayAttr::get(tf_op->getContext(), values);
              tf_op->setAttr(attr_name, attr_value);
            };
        if (tf_op->hasTrait<mlir::OpTrait::AttrSizedOperandSegments>() ||
            tf_op->hasTrait<mlir::OpTrait::AttrSizedResultSegments>()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/parallel_execute_to_islands.cc

            group_annotation = absl::StrCat(parallel_group_attr.getValue().str(),
                                            ",", group_annotation);
          }
          for (auto& op : execute_island.GetBody()) {
            op.setAttr(TF::kParallelExecAnnotation,
                       builder->getStringAttr(group_annotation));
          }
        }
    
        executes.push_back(execute_island);
      }
    }
    
    void CreateIslandsFromParallelExecute(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 19 19:47:16 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/preprocess_op.cc

        new_float_func.setType(FunctionType::get(
            getContext(), TypeRange{ValueRange{new_float_func_args}},
            new_float_func.getResultTypes()));
        symbol_table.insert(new_float_func);
    
        op->setAttr("f", SymbolRefAttr::get(rewriter.getContext(),
                                            new_float_func.getName()));
    
        return success();
      }
    
      LogicalResult matchAndRewrite(TF::PartitionedCallOp op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top