Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 387 for setAttr (0.32 sec)

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

        const std::string new_inputs_attr_str =
            llvm::join(std::move(inputs_attrs), /*Separator=*/",");
    
        named_attr.setValue(StringAttr::get(ctx, new_inputs_attr_str));
      }
    
      func_op->setAttr(kTfEntryFunctionAttr,
                       DictionaryAttr::get(ctx, entry_func_attrs));
    }
    }  // namespace quant
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 26 01:13:26 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tpu_dynamic_layout_pass.cc

      builder.setInsertionPoint(execute_launch);
      auto copy_with_layout = BuildCopyWithLayout(execute_launch, compile_launch,
                                                  get_layout, input, &builder);
      copy_with_layout->setAttr(kDeviceAttr, execute_launch.getDeviceAttr());
      execute.setOperand(execute_arg_index, copy_with_layout);
    }
    
    // Performs transformation for replicated inputs. Returns true if this is a
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/python/composite.py

        self._outputs = outputs
    
      def __call__(self, compose_fn):
        # TODO(fengliuai): more sanity check of the input function and make sure
        # the bounded arguments of the function matches the 'inputs' and 'attrs'.
        setattr(compose_fn, '_tfr_op_name', self._op_name)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 28 21:37:05 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/cluster_outlining.cc

                                live_ins);
    
      func::FuncOp outlined_func =
          BuildFunction(live_ins.getArrayRef(), cluster_op, symbol_table, builder);
      cluster_op->setAttr(
          builder->getStringAttr(kFuncAttr),
          mlir::SymbolRefAttr::get(builder->getContext(), outlined_func.getName()));
    
      builder->setInsertionPoint(cluster_op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/infeed_ops_xla_adjust_layout.cc

        SmallVector<Type> result_types(op.getResultTypes().begin(),
                                       op.getResultTypes().end());
        if (!op->getAttr("layout")) {
          auto layout = mlir::GetTPUInfeedLayout(result_types, builder);
          if (failed(layout)) return;
    
          op->setAttr("layout", layout.value());
        }
      }
    };
    
    void InfeedsOpsXlaAdjustLayout::runOnOperation() {
      getOperation().walk(runOnInfeedOp);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/experimental/tac/transforms/tac_filter.cc

                                FunctionFilter::FunctionFilterType type,
                                OpBuilder& builder) {
      for (Operation& op : func.front()) {
        if (type == FunctionFilter::SKIP_TARGET_ANNOTATION) {
          op.setAttr(kSkipTargetAnnotation, builder.getUnitAttr());
        } else if (type == FunctionFilter::INCLUDE_TARGET_ANNOTATION) {
          op.removeAttr(kSkipTargetAnnotation);
        }
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tpu_colocate_splits.cc

            return WalkResult::advance();
          for (Operation* pred : IslandPredecessors(split)) {
            if (auto colocation_classes =
                    pred->getAttrOfType<ArrayAttr>(kClassAttr)) {
              split->setAttr(kClassAttr, colocation_classes);
              return WalkResult::advance();
            }
          }
        }
        return WalkResult::advance();
      });
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 18:44:34 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/utils/nms_utils.cc

      return ConstBytesAttr::get(builder->getContext(),
                                 StringRef(content.data(), content.size()));
    }
    
    }  // namespace
    
    void ConvertNMSPaddedFunc::RewriteFunc() {
      func_->setAttr(kTFImplements,
                     StringAttr::get(func_.getContext(), kTfNMSPadded));
      Value boxes = func_.getArgument(0);
      Value scores = func_.getArgument(1);
      Value max_output_size = func_.getArgument(2);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  9. tensorflow/api_template_v1.__init__.py

      import tensorflow_io_gcs_filesystem as _tensorflow_io_gcs_filesystem
    
    # Lazy-load Keras v1.
    _tf_uses_legacy_keras = (
        _os.environ.get("TF_USE_LEGACY_KERAS", None) in ("true", "True", "1"))
    setattr(_current_module, "keras", _KerasLazyLoader(globals(), mode="v1"))
    _module_dir = _module_util.get_parent_dir_for_name("keras._tf_keras.keras")
    _current_module.__path__ = [_module_dir] + _current_module.__path__
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 02:14:00 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/get_arithmetic_count.cc

        int64_t arithmetic_count = arithmetic_count_op.GetArithmeticCount(op);
        auto attr =
            builder.getIntegerAttr(builder.getIntegerType(64), arithmetic_count);
        op->setAttr("_arithmetic_count", attr);
      });
    }
    
    }  // namespace
    
    /// Creates an instance of the TensorFlow Lite dialect GetArithmeticCount
    /// pass.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 07 21:08:41 UTC 2022
    - 2.5K bytes
    - Viewed (0)
Back to top