小编lor*_*ers的帖子

找不到 com.android.tools.build:aapt2:4.0.0-6051327

当我在 android studio 中运行 java 文件时,会发生此错误:

Could not find com.android.tools.build:aapt2:4.0.0-6051327.
Searched in the following locations:
  - https://jcenter.bintray.com/com/android/tools/build/aapt2/4.0.0-6051327/aapt2-4.0.0-6051327.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
    project :objects
Run Code Online (Sandbox Code Playgroud)

提供一些信息,build.gradle 项目:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
        google()
        mavenCentral()
    }
    dependencies …
Run Code Online (Sandbox Code Playgroud)

android android-studio android-studio-4.0

6
推荐指数
1
解决办法
6573
查看次数

如何获得上一层的形状并将其传递给下一层?

我想采用以(None,)形状传递到Input层的Input数据的形状,并出于某种目的在for循环中使用它。

这是我的代码实现的一部分:

lst_rfrm = []
Inpt_lyr = keras.Input(shape = (None,))
for k in range(tm_stp):
  F = keras.layers.Lambda(lambda x, i, j: x[:, None, j : j + i])
  F.arguments = {'i' : sub_len, 'j' : k}
  tmp_rfrm = F(Inpt_lyr)
  lst_rfrm.append(tmp_rfrm)
cnctnt_lyr = keras.layers.merge.Concatenate(axis = 1)(lst_rfrm)
#defining other layers ...
Run Code Online (Sandbox Code Playgroud)

因为Input的形状是(None,),所以我不知道要给for循环做什么范围(在我用'tm_stp'描述的代码处)。在这种情况下,如何获取输入层的形状(传递给输入层的数据)?任何帮助深表感谢

python deep-learning keras

5
推荐指数
1
解决办法
55
查看次数